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

Required Methods§

source

fn tell(&self, seekable: &Self::Type) -> i64

source

fn can_seek(&self, seekable: &Self::Type) -> bool

source

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

source

fn can_truncate(&self, seekable: &Self::Type) -> bool

source

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

Implementors§