gio::subclass::prelude

Trait SeekableImpl

Source
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>

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§