[−][src]Enum async_coap::message::MsgType
Enum representing the CoAP message type: CON
, NON
, ACK
, and RES
.
Variants
Con
Variant for confirmable CoAP messages.
Non
Variant for non-confirmable CoAP messages.
Ack
Variant for CoAP message acknowledgements.
Res
Variant for CoAP reset messages.
Methods
impl MsgType
[src]
pub fn from(tt: u8) -> MsgType
[src]
Creates a new MsgType
from the given value, panicing if the value is invalid.
pub fn try_from(tt: u8) -> Option<MsgType>
[src]
Creates a new MsgType
from the given value, returning None
if the value is invalid.
pub fn is_non(self) -> bool
[src]
Returns true if this message type is nonconfirmable (NON).
pub fn is_con(self) -> bool
[src]
Returns true if this message type is confirmable (CON).
pub fn is_ack(self) -> bool
[src]
Returns true if this message type is an acknowledgement (ACK).
pub fn is_res(self) -> bool
[src]
Returns true if this message type is a reset (RES).
Trait Implementations
impl Clone for MsgType
[src]
fn clone(&self) -> MsgType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for MsgType
[src]
impl Copy for MsgType
[src]
impl Eq for MsgType
[src]
impl PartialEq<MsgType> for MsgType
[src]
fn eq(&self, other: &MsgType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Debug for MsgType
[src]
Auto Trait Implementations
impl Unpin for MsgType
impl Sync for MsgType
impl Send for MsgType
impl UnwindSafe for MsgType
impl RefUnwindSafe for MsgType
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,