Trait SeekableExt

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

Required Methods§

Source

fn can_seek(&self) -> bool

Source

fn can_truncate(&self) -> bool

Source

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

Source

fn tell(&self) -> i64

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§