pub trait SeekableImpl: ObjectImpl + Send {
    // Required methods
    fn tell(&self) -> i64;
    fn can_seek(&self) -> bool;
    fn seek(
        &self,
        offset: i64,
        type_: SeekType,
        cancellable: Option<&Cancellable>
    ) -> Result<(), Error>;
    fn can_truncate(&self) -> bool;
    fn truncate(
        &self,
        offset: i64,
        cancellable: Option<&Cancellable>
    ) -> Result<(), Error>;
}

Required Methods§

source

fn tell(&self) -> i64

source

fn can_seek(&self) -> bool

source

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

source

fn can_truncate(&self) -> bool

source

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

Implementors§