Struct riot_sys::coap_pkt_t[][src]

#[repr(C)]
pub struct coap_pkt_t { pub hdr: *mut coap_hdr_t, pub token: *mut u8, pub payload: *mut u8, pub payload_len: u16, pub options_len: u16, pub options: [coap_optpos_t; 16], pub observe_value: u32, }
Expand description

@brief CoAP PDU parsing context structure

Fields

hdr: *mut coap_hdr_t

< pointer to raw packet

token: *mut u8

< pointer to token

payload: *mut u8

< pointer to payload

payload_len: u16

< length of payload

options_len: u16

< length of options array

options: [coap_optpos_t; 16]

< option offset array

observe_value: u32

< observe value

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.