Enum coap_lite::CoapOption
source · pub enum CoapOption {
Show 22 variants
IfMatch,
UriHost,
ETag,
IfNoneMatch,
Observe,
UriPort,
LocationPath,
Oscore,
UriPath,
ContentFormat,
MaxAge,
UriQuery,
Accept,
LocationQuery,
Block2,
Block1,
ProxyUri,
ProxyScheme,
Size1,
Size2,
NoResponse,
Unknown(u16),
}
Expand description
The CoAP options.
Variants§
IfMatch
UriHost
ETag
IfNoneMatch
Observe
UriPort
LocationPath
Oscore
UriPath
ContentFormat
MaxAge
UriQuery
Accept
LocationQuery
Block2
Block1
ProxyUri
ProxyScheme
Size1
Size2
NoResponse
Unknown(u16)
Trait Implementations§
source§impl Clone for CoapOption
impl Clone for CoapOption
source§fn clone(&self) -> CoapOption
fn clone(&self) -> CoapOption
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CoapOption
impl Debug for CoapOption
source§impl From<CoapOption> for u16
impl From<CoapOption> for u16
source§fn from(option: CoapOption) -> u16
fn from(option: CoapOption) -> u16
Converts to this type from the input type.
source§impl From<u16> for CoapOption
impl From<u16> for CoapOption
source§fn from(number: u16) -> CoapOption
fn from(number: u16) -> CoapOption
Converts to this type from the input type.
source§impl OptionNumber for CoapOption
impl OptionNumber for CoapOption
§type Error = Infallible
type Error = Infallible
Error of the
.new()
method; ideally, this is also the TryFrom::Error (which can not
be restricted without Associated type
bounds being stabilized). Read moresource§fn new(option: u16) -> Result<Self, Infallible>
fn new(option: u16) -> Result<Self, Infallible>
This constructor is a more concrete variant of the TryFrom function whose error code is
practically usable (see Self::Error)
source§impl PartialEq for CoapOption
impl PartialEq for CoapOption
source§fn eq(&self, other: &CoapOption) -> bool
fn eq(&self, other: &CoapOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CoapOption
impl OptionNumber for CoapOption
impl StructuralPartialEq for CoapOption
Auto Trait Implementations§
impl Freeze for CoapOption
impl RefUnwindSafe for CoapOption
impl Send for CoapOption
impl Sync for CoapOption
impl Unpin for CoapOption
impl UnwindSafe for CoapOption
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more