[][src]Struct jnet::coap::Option

pub struct Option<'a> { /* fields omitted */ }

A CoAP option

Methods

impl<'a> Option<'a>[src]

pub fn number(&self) -> OptionNumber[src]

Returns the number of this option

pub fn value(&self) -> &'a [u8][src]

Returns the value of this option

Auto Trait Implementations

impl<'a> Unpin for Option<'a>

impl<'a> Send for Option<'a>

impl<'a> Sync for Option<'a>

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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

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

type Output = T

Should always be Self