Type Alias riot_sys::gcoap_request_matcher_t
source · pub type gcoap_request_matcher_t = Option<unsafe extern "C" fn(listener: *mut gcoap_listener_t, resource: *mut *const coap_resource_t, pdu: *mut coap_pkt_t) -> c_int>;
Expand description
@brief Handler function for the request matcher strategy
@param[in] listener Listener context @param[out] resource Matching resource @param[in] pdu Pointer to the PDU
@return GCOAP_RESOURCE_FOUND on resource match @return GCOAP_RESOURCE_NO_PATH on no path found in @p resource that matches @p pdu @return GCOAP_RESOURCE_ERROR on processing failure of the request
Aliased Type§
enum gcoap_request_matcher_t {
None,
Some(unsafe extern "C" fn(_: *mut gcoap_listener, _: *mut *const coap_resource_t, _: *mut coap_pkt_t) -> i32),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: *mut gcoap_listener, _: *mut *const coap_resource_t, _: *mut coap_pkt_t) -> i32)
Some value of type T
.