openthread_sys

Type Alias otCoapRequestHandler

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

Pointer is called when a CoAP request with a given Uri-Path is received.

@param[in] aContext A pointer to arbitrary context information. @param[in] aMessage A pointer to the message. @param[in] aMessageInfo A pointer to the message info for @p aMessage.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.