openthread_sys

Type Alias otIcmp6ReceiveCallback

Source
pub type otIcmp6ReceiveCallback = Option<unsafe extern "C" fn(aContext: *mut c_void, aMessage: *mut otMessage, aMessageInfo: *const otMessageInfo, aIcmpHeader: *const otIcmp6Header)>;
Expand description

This callback allows OpenThread to inform the application of a received ICMPv6 message.

@param[in] aContext A pointer to arbitrary context information. @param[in] aMessage A pointer to the received message. @param[in] aMessageInfo A pointer to message information associated with @p aMessage. @param[in] aIcmpHeader A pointer to the received ICMPv6 header.

Aliased Type§

enum otIcmp6ReceiveCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut otMessage, _: *const otMessageInfo, _: *const otIcmp6Header)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: *mut otMessage, _: *const otMessageInfo, _: *const otIcmp6Header))

Some value of type T.