[−][src]Struct libcoap_sys::coap_optlist_t
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]
fn clone(&self) -> coap_optlist_t
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for coap_optlist_t
[src]
impl Debug for coap_optlist_t
[src]
Auto Trait Implementations
impl RefUnwindSafe for coap_optlist_t
impl !Send for coap_optlist_t
impl !Sync for coap_optlist_t
impl Unpin for coap_optlist_t
impl UnwindSafe for coap_optlist_t
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,