[][src]Enum jnet::coap::ContentFormat

pub enum ContentFormat {
    TextPlain,
    ApplicationLinkFormat,
    ApplicationXml,
    ApplicationOctetStream,
    ApplicationExi,
    ApplicationJson,
    Unknown(u16),
}

CoAP Content-Formats

Variants

TextPlain

text/plain; charset=utf-8

ApplicationLinkFormat

application/link-format

ApplicationXml

application/xml

ApplicationOctetStream

application/octet-stream

ApplicationExi

application/exi

ApplicationJson

application/json

Unknown(u16)

Unknown

Trait Implementations

impl From<u16> for ContentFormat[src]

impl From<ContentFormat> for u16[src]

Auto Trait Implementations

impl Unpin for ContentFormat

impl Send for ContentFormat

impl Sync for ContentFormat

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