Type Alias riot_sys::gcoap_resp_handler_t
source · pub type gcoap_resp_handler_t = Option<unsafe extern "C" fn(memo: *const gcoap_request_memo_t, pdu: *mut coap_pkt_t, remote: *const sock_udp_ep_t)>;
Expand description
@brief Handler function for a server response, including the state for the originating request
If request timed out, the packet header is for the request.
Aliased Type§
enum gcoap_resp_handler_t {
None,
Some(unsafe extern "C" fn(_: *const gcoap_request_memo, _: *mut coap_pkt_t, _: *const _sock_tl_ep)),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: *const gcoap_request_memo, _: *mut coap_pkt_t, _: *const _sock_tl_ep))
Some value of type T
.