[][src]Enum jnet::coap::OptionNumber

pub enum OptionNumber {
    Reserved0,
    IfMatch,
    UriHost,
    ETag,
    IfNoneMatch,
    UriPort,
    LocationPath,
    UriPath,
    ContentFormat,
    MaxAge,
    UriQuery,
    Accept,
    LocationQuery,
    ProxyUri,
    ProxyScheme,
    Size1,
    Reserved1,
    Reserved2,
    Reserved3,
    Reserved4,
    Unknown(u16),
}

CoAP Option Numbers

Variants

Reserved0

Reserved

IfMatch

If-Match

UriHost

Uri-Host

ETag

ETag

IfNoneMatch

If-None-Patch

UriPort

Uri-Port

LocationPath

Location-Path

UriPath

Uri-Path

ContentFormat

Content-Format

MaxAge

Max-Age

UriQuery

Uri-Query

Accept

Accept

LocationQuery

Location-Query

ProxyUri

Proxy-Uri

ProxyScheme

Proxy-Scheme

Size1

Size1

Reserved1

Reserved

Reserved2

Reserved

Reserved3

Reserved

Reserved4

Reserved

Unknown(u16)

Unknown

Methods

impl OptionNumber[src]

pub fn is_critical(&self) -> bool[src]

Is this a critical option?

pub fn is_elective(&self) -> bool[src]

Is this an elective option?

pub fn is_unsafe(&self) -> bool[src]

Is this option UnSafe to forward?

Trait Implementations

impl From<u16> for OptionNumber[src]

impl From<OptionNumber> for u16[src]

impl PartialEq<OptionNumber> for OptionNumber[src]

impl PartialOrd<OptionNumber> for OptionNumber[src]

impl Debug for OptionNumber[src]

impl Copy for OptionNumber[src]

impl Clone for OptionNumber[src]

Auto Trait Implementations

impl Unpin for OptionNumber

impl Send for OptionNumber

impl Sync for OptionNumber

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