openthread_sys

Type Alias otDatasetUpdaterCallback

Source
pub type otDatasetUpdaterCallback = Option<unsafe extern "C" fn(aError: otError, aContext: *mut c_void)>;
Expand description

This callback function pointer is called when a Dataset update request finishes, reporting success or failure status of the Dataset update request.

Available when OPENTHREAD_CONFIG_DATASET_UPDATER_ENABLE is enabled.

@param[in] aError The error status. OT_ERROR_NONE indicates successful Dataset update. OT_ERROR_INVALID_STATE indicates failure due invalid state (MLE being disabled). OT_ERROR_ALREADY indicates failure due to another device within network requesting a conflicting Dataset update.

@param[in] aContext A pointer to the arbitrary context (provided by user in otDatasetUpdaterRequestUpdate()).

Aliased Type§

enum otDatasetUpdaterCallback {
    None,
    Some(unsafe extern "C" fn(_: u32, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: u32, _: *mut c_void))

Some value of type T.