Trait libhelium::subclass::prelude::SeekableImpl

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§

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>

Object Safety§

This trait is not object safe.

Implementors§