Struct riot_sys::inline::coap_pkt_t
source · #[repr(C)]pub struct coap_pkt_t {
pub hdr: *mut coap_hdr_t,
pub payload: *mut uint8_t,
pub snips: *mut iolist_t,
pub payload_len: uint16_t,
pub options_len: uint16_t,
pub options: [coap_optpos_t; 16],
pub opt_crit: [uint8_t; 2],
pub observe_value: uint32_t,
}
Fields§
§hdr: *mut coap_hdr_t
§payload: *mut uint8_t
§snips: *mut iolist_t
§payload_len: uint16_t
§options_len: uint16_t
§options: [coap_optpos_t; 16]
§opt_crit: [uint8_t; 2]
§observe_value: uint32_t
Trait Implementations§
source§impl Clone for coap_pkt_t
impl Clone for coap_pkt_t
source§fn clone(&self) -> coap_pkt_t
fn clone(&self) -> coap_pkt_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for coap_pkt_t
Auto Trait Implementations§
impl RefUnwindSafe for coap_pkt_t
impl !Send for coap_pkt_t
impl !Sync for coap_pkt_t
impl Unpin for coap_pkt_t
impl UnwindSafe for coap_pkt_t
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more