gio::subclass::prelude

Trait SeekableImpl

source
pub trait SeekableImpl:
    Send
    + ObjectImpl
    + ObjectSubclass<Type: IsA<Seekable>> {
    // 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§