Enum coap_lite::ContentFormat
source · [−]pub enum ContentFormat {
Show 15 variants
TextPlain,
ApplicationLinkFormat,
ApplicationXML,
ApplicationOctetStream,
ApplicationEXI,
ApplicationJSON,
ApplicationCBOR,
ApplicationSenmlJSON,
ApplicationSensmlJSON,
ApplicationSenmlCBOR,
ApplicationSensmlCBOR,
ApplicationSenmlExi,
ApplicationSensmlExi,
ApplicationSenmlXML,
ApplicationSensmlXML,
}Expand description
The content formats.
Variants
TextPlain
ApplicationLinkFormat
ApplicationXML
ApplicationOctetStream
ApplicationEXI
ApplicationJSON
ApplicationCBOR
ApplicationSenmlJSON
ApplicationSensmlJSON
ApplicationSenmlCBOR
ApplicationSensmlCBOR
ApplicationSenmlExi
ApplicationSensmlExi
ApplicationSenmlXML
ApplicationSensmlXML
Trait Implementations
sourceimpl Clone for ContentFormat
impl Clone for ContentFormat
sourcefn clone(&self) -> ContentFormat
fn clone(&self) -> ContentFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ContentFormat
impl Debug for ContentFormat
sourceimpl From<ContentFormat> for usize
impl From<ContentFormat> for usize
sourcefn from(format: ContentFormat) -> usize
fn from(format: ContentFormat) -> usize
Converts to this type from the input type.
sourceimpl PartialEq<ContentFormat> for ContentFormat
impl PartialEq<ContentFormat> for ContentFormat
sourceimpl TryFrom<usize> for ContentFormat
impl TryFrom<usize> for ContentFormat
type Error = InvalidContentFormat
type Error = InvalidContentFormat
The type returned in the event of a conversion error.
sourcefn try_from(number: usize) -> Result<ContentFormat, InvalidContentFormat>
fn try_from(number: usize) -> Result<ContentFormat, InvalidContentFormat>
Performs the conversion.
impl Copy for ContentFormat
impl StructuralPartialEq for ContentFormat
Auto Trait Implementations
impl RefUnwindSafe for ContentFormat
impl Send for ContentFormat
impl Sync for ContentFormat
impl Unpin for ContentFormat
impl UnwindSafe for ContentFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more