openthread_sys

Type Alias otUdpHandler

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

This callback allows OpenThread to provide specific handlers for certain UDP messages.

@retval true The message is handled by this receiver and should not be further processed. @retval false The message is not handled by this receiver.

Aliased Type§

enum otUdpHandler {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *const otMessage, _: *const otMessageInfo) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.