DADiskMountCallback

Type Alias DADiskMountCallback 

Source
pub type DADiskMountCallback = Option<unsafe extern "C" fn(disk: DADiskRef, dissenter: DADissenterRef, context: *mut c_void)>;
Expand description

Type of the callback function used by DADiskMount.

§Parameters

  • disk - The disk object.
  • dissenter - A dissenter object on failure or NULL on success.
  • context - The user-defined context parameter given to the mount function.

§Discussion

If the disk is already mounted, then status code in the dissenter object will be set to kDAReturnBusy.

Aliased Type§

pub enum DADiskMountCallback {
    None,
    Some(unsafe extern "C" fn(*mut __DADisk, *const __DADissenter, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut __DADisk, *const __DADissenter, *mut c_void))

Some value of type T.