DADiskEjectCallback

Type Alias DADiskEjectCallback 

Source
pub type DADiskEjectCallback = 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 DADiskEject().

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 eject function.

See also Apple’s documentation

Aliased Type§

pub enum DADiskEjectCallback {
    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.