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
.
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
None
: 0 bytesSome
: 4 bytes