openthread_sys

Type Alias otDatasetMgmtSetCallback

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

Pointer is called when a response to a MGMT_SET request is received or times out.

@param[in] aResult A result of the operation. @param[in] aContext A pointer to application-specific context.

@retval OT_ERROR_NONE The request was accepted by the leader. @retval OT_ERROR_REJECTED The request was rejected by the leader. @retval OT_ERROR_PARSE An error occurred during parsing the response. @retval OT_ERROR_ABORT The request was reset by peer. @retval OT_ERROR_RESPONSE_TIMEOUT No response or acknowledgment received during timeout period.

Aliased Type§

enum otDatasetMgmtSetCallback {
    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.