gio_sys

Struct GMountIface

Source
#[repr(C)]
pub struct GMountIface {
Show 28 fields pub g_iface: GTypeInterface, pub changed: Option<unsafe extern "C" fn(_: *mut GMount)>, pub unmounted: Option<unsafe extern "C" fn(_: *mut GMount)>, pub get_root: Option<unsafe extern "C" fn(_: *mut GMount) -> *mut GFile>, pub get_name: Option<unsafe extern "C" fn(_: *mut GMount) -> *const c_char>, pub get_icon: Option<unsafe extern "C" fn(_: *mut GMount) -> *mut GIcon>, pub get_uuid: Option<unsafe extern "C" fn(_: *mut GMount) -> *const c_char>, pub get_volume: Option<unsafe extern "C" fn(_: *mut GMount) -> *mut GVolume>, pub get_drive: Option<unsafe extern "C" fn(_: *mut GMount) -> *mut GDrive>, pub can_unmount: Option<unsafe extern "C" fn(_: *mut GMount) -> gboolean>, pub can_eject: Option<unsafe extern "C" fn(_: *mut GMount) -> gboolean>, pub unmount: Option<unsafe extern "C" fn(_: *mut GMount, _: GMountUnmountFlags, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>, pub unmount_finish: Option<unsafe extern "C" fn(_: *mut GMount, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>, pub eject: Option<unsafe extern "C" fn(_: *mut GMount, _: GMountUnmountFlags, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>, pub eject_finish: Option<unsafe extern "C" fn(_: *mut GMount, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>, pub remount: Option<unsafe extern "C" fn(_: *mut GMount, _: GMountMountFlags, _: *mut GMountOperation, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>, pub remount_finish: Option<unsafe extern "C" fn(_: *mut GMount, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>, pub guess_content_type: Option<unsafe extern "C" fn(_: *mut GMount, _: gboolean, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>, pub guess_content_type_finish: Option<unsafe extern "C" fn(_: *mut GMount, _: *mut GAsyncResult, _: *mut *mut GError) -> *mut *mut c_char>, pub guess_content_type_sync: Option<unsafe extern "C" fn(_: *mut GMount, _: gboolean, _: *mut GCancellable, _: *mut *mut GError) -> *mut *mut c_char>, pub pre_unmount: Option<unsafe extern "C" fn(_: *mut GMount)>, pub unmount_with_operation: Option<unsafe extern "C" fn(_: *mut GMount, _: GMountUnmountFlags, _: *mut GMountOperation, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>, pub unmount_with_operation_finish: Option<unsafe extern "C" fn(_: *mut GMount, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>, pub eject_with_operation: Option<unsafe extern "C" fn(_: *mut GMount, _: GMountUnmountFlags, _: *mut GMountOperation, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>, pub eject_with_operation_finish: Option<unsafe extern "C" fn(_: *mut GMount, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>, pub get_default_location: Option<unsafe extern "C" fn(_: *mut GMount) -> *mut GFile>, pub get_sort_key: Option<unsafe extern "C" fn(_: *mut GMount) -> *const c_char>, pub get_symbolic_icon: Option<unsafe extern "C" fn(_: *mut GMount) -> *mut GIcon>,
}

Fields§

§g_iface: GTypeInterface§changed: Option<unsafe extern "C" fn(_: *mut GMount)>§unmounted: Option<unsafe extern "C" fn(_: *mut GMount)>§get_root: Option<unsafe extern "C" fn(_: *mut GMount) -> *mut GFile>§get_name: Option<unsafe extern "C" fn(_: *mut GMount) -> *const c_char>§get_icon: Option<unsafe extern "C" fn(_: *mut GMount) -> *mut GIcon>§get_uuid: Option<unsafe extern "C" fn(_: *mut GMount) -> *const c_char>§get_volume: Option<unsafe extern "C" fn(_: *mut GMount) -> *mut GVolume>§get_drive: Option<unsafe extern "C" fn(_: *mut GMount) -> *mut GDrive>§can_unmount: Option<unsafe extern "C" fn(_: *mut GMount) -> gboolean>§can_eject: Option<unsafe extern "C" fn(_: *mut GMount) -> gboolean>§unmount: Option<unsafe extern "C" fn(_: *mut GMount, _: GMountUnmountFlags, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>§unmount_finish: Option<unsafe extern "C" fn(_: *mut GMount, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>§eject: Option<unsafe extern "C" fn(_: *mut GMount, _: GMountUnmountFlags, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>§eject_finish: Option<unsafe extern "C" fn(_: *mut GMount, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>§remount: Option<unsafe extern "C" fn(_: *mut GMount, _: GMountMountFlags, _: *mut GMountOperation, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>§remount_finish: Option<unsafe extern "C" fn(_: *mut GMount, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>§guess_content_type: Option<unsafe extern "C" fn(_: *mut GMount, _: gboolean, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>§guess_content_type_finish: Option<unsafe extern "C" fn(_: *mut GMount, _: *mut GAsyncResult, _: *mut *mut GError) -> *mut *mut c_char>§guess_content_type_sync: Option<unsafe extern "C" fn(_: *mut GMount, _: gboolean, _: *mut GCancellable, _: *mut *mut GError) -> *mut *mut c_char>§pre_unmount: Option<unsafe extern "C" fn(_: *mut GMount)>§unmount_with_operation: Option<unsafe extern "C" fn(_: *mut GMount, _: GMountUnmountFlags, _: *mut GMountOperation, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>§unmount_with_operation_finish: Option<unsafe extern "C" fn(_: *mut GMount, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>§eject_with_operation: Option<unsafe extern "C" fn(_: *mut GMount, _: GMountUnmountFlags, _: *mut GMountOperation, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>§eject_with_operation_finish: Option<unsafe extern "C" fn(_: *mut GMount, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>§get_default_location: Option<unsafe extern "C" fn(_: *mut GMount) -> *mut GFile>§get_sort_key: Option<unsafe extern "C" fn(_: *mut GMount) -> *const c_char>§get_symbolic_icon: Option<unsafe extern "C" fn(_: *mut GMount) -> *mut GIcon>

Trait Implementations§

Source§

impl Clone for GMountIface

Source§

fn clone(&self) -> GMountIface

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GMountIface

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for GMountIface

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.