DADiskUnmountCallback

Type Alias DADiskUnmountCallback 

Source
pub type DADiskUnmountCallback = Option<unsafe extern "C-unwind" fn(NonNull<DADisk>, *const DADissenter, *mut c_void)>;
Available on crate features DADisk and DADissenter only.
Expand description

Type of the callback function used by DADiskUnmount().

Parameter disk: The disk object.

Parameter dissenter: A dissenter object on failure or NULL on success.

Parameter context: The user-defined context parameter given to the unmount function.

See also Apple’s documentation

Aliased Type§

pub enum DADiskUnmountCallback {
    None,
    Some(unsafe extern "C-unwind" fn(NonNull<DADisk>, *const DADissenter, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C-unwind" fn(NonNull<DADisk>, *const DADissenter, *mut c_void))

Some value of type T.