gio_sys

Struct GDriveIface

Source
#[repr(C)]
pub struct GDriveIface {
Show 33 fields pub g_iface: GTypeInterface, pub changed: Option<unsafe extern "C" fn(_: *mut GDrive)>, pub disconnected: Option<unsafe extern "C" fn(_: *mut GDrive)>, pub eject_button: Option<unsafe extern "C" fn(_: *mut GDrive)>, pub get_name: Option<unsafe extern "C" fn(_: *mut GDrive) -> *const c_char>, pub get_icon: Option<unsafe extern "C" fn(_: *mut GDrive) -> *mut GIcon>, pub has_volumes: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>, pub get_volumes: Option<unsafe extern "C" fn(_: *mut GDrive) -> *mut GList>, pub is_media_removable: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>, pub has_media: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>, pub is_media_check_automatic: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>, pub can_eject: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>, pub can_poll_for_media: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>, pub eject: Option<unsafe extern "C" fn(_: *mut GDrive, _: GMountUnmountFlags, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>, pub eject_finish: Option<unsafe extern "C" fn(_: *mut GDrive, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>, pub poll_for_media: Option<unsafe extern "C" fn(_: *mut GDrive, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>, pub poll_for_media_finish: Option<unsafe extern "C" fn(_: *mut GDrive, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>, pub get_identifier: Option<unsafe extern "C" fn(_: *mut GDrive, _: *const c_char) -> *mut c_char>, pub enumerate_identifiers: Option<unsafe extern "C" fn(_: *mut GDrive) -> *mut *mut c_char>, pub get_start_stop_type: Option<unsafe extern "C" fn(_: *mut GDrive) -> GDriveStartStopType>, pub can_start: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>, pub can_start_degraded: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>, pub start: Option<unsafe extern "C" fn(_: *mut GDrive, _: GDriveStartFlags, _: *mut GMountOperation, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>, pub start_finish: Option<unsafe extern "C" fn(_: *mut GDrive, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>, pub can_stop: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>, pub stop: Option<unsafe extern "C" fn(_: *mut GDrive, _: GMountUnmountFlags, _: *mut GMountOperation, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>, pub stop_finish: Option<unsafe extern "C" fn(_: *mut GDrive, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>, pub stop_button: Option<unsafe extern "C" fn(_: *mut GDrive)>, pub eject_with_operation: Option<unsafe extern "C" fn(_: *mut GDrive, _: GMountUnmountFlags, _: *mut GMountOperation, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>, pub eject_with_operation_finish: Option<unsafe extern "C" fn(_: *mut GDrive, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>, pub get_sort_key: Option<unsafe extern "C" fn(_: *mut GDrive) -> *const c_char>, pub get_symbolic_icon: Option<unsafe extern "C" fn(_: *mut GDrive) -> *mut GIcon>, pub is_removable: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>,
}

Fields§

§g_iface: GTypeInterface§changed: Option<unsafe extern "C" fn(_: *mut GDrive)>§disconnected: Option<unsafe extern "C" fn(_: *mut GDrive)>§eject_button: Option<unsafe extern "C" fn(_: *mut GDrive)>§get_name: Option<unsafe extern "C" fn(_: *mut GDrive) -> *const c_char>§get_icon: Option<unsafe extern "C" fn(_: *mut GDrive) -> *mut GIcon>§has_volumes: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>§get_volumes: Option<unsafe extern "C" fn(_: *mut GDrive) -> *mut GList>§is_media_removable: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>§has_media: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>§is_media_check_automatic: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>§can_eject: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>§can_poll_for_media: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>§eject: Option<unsafe extern "C" fn(_: *mut GDrive, _: GMountUnmountFlags, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>§eject_finish: Option<unsafe extern "C" fn(_: *mut GDrive, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>§poll_for_media: Option<unsafe extern "C" fn(_: *mut GDrive, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>§poll_for_media_finish: Option<unsafe extern "C" fn(_: *mut GDrive, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>§get_identifier: Option<unsafe extern "C" fn(_: *mut GDrive, _: *const c_char) -> *mut c_char>§enumerate_identifiers: Option<unsafe extern "C" fn(_: *mut GDrive) -> *mut *mut c_char>§get_start_stop_type: Option<unsafe extern "C" fn(_: *mut GDrive) -> GDriveStartStopType>§can_start: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>§can_start_degraded: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>§start: Option<unsafe extern "C" fn(_: *mut GDrive, _: GDriveStartFlags, _: *mut GMountOperation, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>§start_finish: Option<unsafe extern "C" fn(_: *mut GDrive, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>§can_stop: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>§stop: Option<unsafe extern "C" fn(_: *mut GDrive, _: GMountUnmountFlags, _: *mut GMountOperation, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>§stop_finish: Option<unsafe extern "C" fn(_: *mut GDrive, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>§stop_button: Option<unsafe extern "C" fn(_: *mut GDrive)>§eject_with_operation: Option<unsafe extern "C" fn(_: *mut GDrive, _: GMountUnmountFlags, _: *mut GMountOperation, _: *mut GCancellable, _: GAsyncReadyCallback, _: gpointer)>§eject_with_operation_finish: Option<unsafe extern "C" fn(_: *mut GDrive, _: *mut GAsyncResult, _: *mut *mut GError) -> gboolean>§get_sort_key: Option<unsafe extern "C" fn(_: *mut GDrive) -> *const c_char>§get_symbolic_icon: Option<unsafe extern "C" fn(_: *mut GDrive) -> *mut GIcon>§is_removable: Option<unsafe extern "C" fn(_: *mut GDrive) -> gboolean>

Trait Implementations§

Source§

impl Clone for GDriveIface

Source§

fn clone(&self) -> GDriveIface

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 GDriveIface

Source§

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

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

impl Copy for GDriveIface

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 T)

🔬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.