[]Trait libhandy4::subclass::prelude::SeekableImpl

pub trait SeekableImpl: Send + ObjectImpl {
    pub fn tell(&self, seekable: &Self::Type) -> i64;
pub fn can_seek(&self, seekable: &Self::Type) -> bool;
pub fn seek(
        &self,
        seekable: &Self::Type,
        offset: i64,
        type_: SeekType,
        cancellable: Option<&Cancellable>
    ) -> Result<(), Error>;
pub fn can_truncate(&self, seekable: &Self::Type) -> bool;
pub fn truncate(
        &self,
        seekable: &Self::Type,
        offset: i64,
        cancellable: Option<&Cancellable>
    ) -> Result<(), Error>; }

Required methods

pub fn tell(&self, seekable: &Self::Type) -> i64

pub fn can_seek(&self, seekable: &Self::Type) -> bool

pub fn seek(
    &self,
    seekable: &Self::Type,
    offset: i64,
    type_: SeekType,
    cancellable: Option<&Cancellable>
) -> Result<(), Error>

pub fn can_truncate(&self, seekable: &Self::Type) -> bool

pub fn truncate(
    &self,
    seekable: &Self::Type,
    offset: i64,
    cancellable: Option<&Cancellable>
) -> Result<(), Error>

Loading content...

Implementors

Loading content...