#[repr(C)]pub struct _GSeekableIface {
pub g_iface: GTypeInterface,
pub tell: Option<unsafe extern "C" fn(seekable: *mut GSeekable) -> goffset>,
pub can_seek: Option<unsafe extern "C" fn(seekable: *mut GSeekable) -> gboolean>,
pub seek: Option<unsafe extern "C" fn(seekable: *mut GSeekable, offset: goffset, type_: GSeekType, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>,
pub can_truncate: Option<unsafe extern "C" fn(seekable: *mut GSeekable) -> gboolean>,
pub truncate_fn: Option<unsafe extern "C" fn(seekable: *mut GSeekable, offset: goffset, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>,
}
Expand description
GSeekableIface: @g_iface: The parent interface. @tell: Tells the current location within a stream. @can_seek: Checks if seeking is supported by the stream. @seek: Seeks to a location within a stream. @can_truncate: Checks if truncation is supported by the stream. @truncate_fn: Truncates a stream.
Provides an interface for implementing seekable functionality on I/O Streams.
Fields§
§g_iface: GTypeInterface
§tell: Option<unsafe extern "C" fn(seekable: *mut GSeekable) -> goffset>
§can_seek: Option<unsafe extern "C" fn(seekable: *mut GSeekable) -> gboolean>
§seek: Option<unsafe extern "C" fn(seekable: *mut GSeekable, offset: goffset, type_: GSeekType, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>
§can_truncate: Option<unsafe extern "C" fn(seekable: *mut GSeekable) -> gboolean>
§truncate_fn: Option<unsafe extern "C" fn(seekable: *mut GSeekable, offset: goffset, cancellable: *mut GCancellable, error: *mut *mut GError) -> gboolean>
Trait Implementations§
Source§impl Clone for _GSeekableIface
impl Clone for _GSeekableIface
Source§fn clone(&self) -> _GSeekableIface
fn clone(&self) -> _GSeekableIface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for _GSeekableIface
impl Debug for _GSeekableIface
Source§impl PartialEq for _GSeekableIface
impl PartialEq for _GSeekableIface
impl Copy for _GSeekableIface
impl Eq for _GSeekableIface
impl StructuralPartialEq for _GSeekableIface
Auto Trait Implementations§
impl Freeze for _GSeekableIface
impl RefUnwindSafe for _GSeekableIface
impl Send for _GSeekableIface
impl Sync for _GSeekableIface
impl Unpin for _GSeekableIface
impl UnwindSafe for _GSeekableIface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more