pub type otCoapResponseFallback = Option<unsafe extern "C" fn(aContext: *mut c_void, aMessage: *mut otMessage, aMessageInfo: *const otMessageInfo) -> bool>;
Expand description
Pointer is called as a fallback if a response did not match a stored CoAP request.
@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.
@retval TRUE The fallback handled the response. @retval FALSE OpenThread takes default actions for response.
Aliased Type§
pub enum otCoapResponseFallback {
None,
Some(unsafe extern "C" fn(*mut c_void, *mut otMessage, *const otMessageInfo) -> bool),
}