DADiskPeekCallback

Type Alias DADiskPeekCallback 

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

Type of the callback function used by DARegisterDiskPeekCallback.

§Parameters

  • disk - A disk object.
  • context - The user-defined context parameter given to the registration function.

§Discussion

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.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.