Trait gio::prelude::SeekableExt

source ·
pub trait SeekableExt: IsA<Seekable> + Sealed + 'static {
    // Provided methods
    fn can_seek(&self) -> bool { ... }
    fn can_truncate(&self) -> bool { ... }
    fn seek(
        &self,
        offset: i64,
        type_: SeekType,
        cancellable: Option<&impl IsA<Cancellable>>
    ) -> Result<(), Error> { ... }
    fn tell(&self) -> i64 { ... }
    fn truncate(
        &self,
        offset: i64,
        cancellable: Option<&impl IsA<Cancellable>>
    ) -> Result<(), Error> { ... }
}

Provided Methods§

source

fn can_seek(&self) -> bool

source

fn can_truncate(&self) -> bool

source

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

source

fn tell(&self) -> i64

source

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

Object Safety§

This trait is not object safe.

Implementors§