Trait gio::prelude::SeekableExt

source ·
pub trait SeekableExt: 'static {
    // Required methods
    fn can_seek(&self) -> bool;
    fn can_truncate(&self) -> bool;
    fn seek(
        &self,
        offset: i64,
        type_: SeekType,
        cancellable: Option<&impl IsA<Cancellable>>
    ) -> Result<(), Error>;
    fn tell(&self) -> i64;
    fn truncate(
        &self,
        offset: i64,
        cancellable: Option<&impl IsA<Cancellable>>
    ) -> Result<(), Error>;
}

Required Methods§

source

fn can_seek(&self) -> bool

source

fn can_truncate(&self) -> bool

source

fn seek( &self, offset: i64, type_: SeekType, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<(), Error>

source

fn tell(&self) -> i64

source

fn truncate( &self, offset: i64, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<(), Error>

Implementors§