riot_sys

Type Alias gcoap_request_memo_t

Source
pub type gcoap_request_memo_t = gcoap_request_memo;
Expand description

@brief Memo to handle a response for a request

Aliased Type§

struct gcoap_request_memo_t {
    pub state: u32,
    pub send_limit: i32,
    pub msg: gcoap_request_memo__bindgen_ty_1,
    pub remote_ep: _sock_tl_ep,
    pub resp_handler: Option<unsafe extern "C" fn(_: *const gcoap_request_memo, _: *mut coap_pkt_t, _: *const _sock_tl_ep)>,
    pub context: *mut c_void,
    pub resp_evt_tmout: event_timeout_t,
    pub resp_tmout_cb: event_callback_t,
    pub socket: gcoap_socket_t,
}

Fields§

§state: u32

< State of this memo, a GCOAP_MEMO…

§send_limit: i32

< Remaining resends, 0 if none; GCOAP_SEND_LIMIT_NON if non-confirmable

§msg: gcoap_request_memo__bindgen_ty_1

< Request message data; if confirmable, supports resending message

§remote_ep: _sock_tl_ep

< Remote endpoint

§resp_handler: Option<unsafe extern "C" fn(_: *const gcoap_request_memo, _: *mut coap_pkt_t, _: *const _sock_tl_ep)>

< Callback for the response

§context: *mut c_void

< ptr to user defined context data

§resp_evt_tmout: event_timeout_t

< Limits wait for response

§resp_tmout_cb: event_callback_t

< Callback for response timeout

§socket: gcoap_socket_t

< Transport type to remote endpoint

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: 104 bytes