[][src]Struct libcoap_sys::coap_optlist_t

#[repr(C)]
pub struct coap_optlist_t {
    pub next: *mut coap_optlist_t,
    pub number: u16,
    pub length: usize,
    pub data: *mut u8,
}

Representation of chained list of CoAP options to install.

@code coap_optlist_t *optlist_chain = NULL; coap_pdu_t *pdu = coap_new_pdu(session);

... other set up code ... coap_insert_optlist(&optlist_chain, coap_new_optlist(COAP_OPTION_OBSERVE, COAP_OBSERVE_ESTABLISH, NULL));

coap_add_optlist_pdu(pdu, &optlist_chain); ... other code ... coap_delete_optlist(optlist_chain); @endcode

Fields

next: *mut coap_optlist_t

< next entry in the optlist chain

number: u16

< the option number (no delta coding)

length: usize

< the option value length

data: *mut u8

< the option data

Trait Implementations

impl Clone for coap_optlist_t[src]

impl Copy for coap_optlist_t[src]

impl Debug for coap_optlist_t[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.