openthread_sys

Type Alias otThreadAnycastLocatorCallback

Source
pub type otThreadAnycastLocatorCallback = Option<unsafe extern "C" fn(aContext: *mut c_void, aError: otError, aMeshLocalAddress: *const otIp6Address, aRloc16: u16)>;
Expand description

Pointer type defines the callback to notify the outcome of a otThreadLocateAnycastDestination() request.

@param[in] aContext A pointer to an arbitrary context (provided when callback is registered). @param[in] aError The error when handling the request. OT_ERROR_NONE indicates success. OT_ERROR_RESPONSE_TIMEOUT indicates a destination could not be found. OT_ERROR_ABORT indicates the request was aborted. @param[in] aMeshLocalAddress A pointer to the mesh-local EID of the closest destination of the anycast address when @p aError is OT_ERROR_NONE, NULL otherwise. @param[in] aRloc16 The RLOC16 of the destination if found, otherwise invalid RLOC16 (0xfffe).

Aliased Type§

enum otThreadAnycastLocatorCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: u32, _: *const otIp6Address, _: u16)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.