Type Alias DADiskPeekCallback

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

Type of the callback function used by DARegisterDiskPeekCallback().

Parameter disk: A disk object.

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

The peek callback functions are called in a specific order, from lowest order to highest order. DADiskClaim() could be used here to claim the disk object and DADiskSetOptions() could be used here to set up options on the disk object.

See also Apple’s documentation

Aliased Type§

enum DADiskPeekCallback {
    None,
    Some(unsafe extern "C-unwind" fn(_: NonNull<DADisk>, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.