Enum coap_lite::MessageClass
source · [−]pub enum MessageClass {
Empty,
Request(RequestType),
Response(ResponseType),
Reserved,
}Expand description
The detailed class (request/response) of a message with the code.
Variants
Empty
Request(RequestType)
Response(ResponseType)
Reserved
Trait Implementations
sourceimpl Clone for MessageClass
impl Clone for MessageClass
sourcefn clone(&self) -> MessageClass
fn clone(&self) -> MessageClass
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 MessageClass
impl Debug for MessageClass
sourceimpl Display for MessageClass
impl Display for MessageClass
sourceimpl From<MessageClass> for u8
impl From<MessageClass> for u8
sourcefn from(class: MessageClass) -> u8
fn from(class: MessageClass) -> u8
Performs the conversion.
sourceimpl From<u8> for MessageClass
impl From<u8> for MessageClass
sourcefn from(number: u8) -> MessageClass
fn from(number: u8) -> MessageClass
Performs the conversion.
sourceimpl PartialEq<MessageClass> for MessageClass
impl PartialEq<MessageClass> for MessageClass
sourcefn eq(&self, other: &MessageClass) -> bool
fn eq(&self, other: &MessageClass) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MessageClass) -> bool
fn ne(&self, other: &MessageClass) -> bool
This method tests for !=.
impl Copy for MessageClass
impl StructuralPartialEq for MessageClass
Auto Trait Implementations
impl RefUnwindSafe for MessageClass
impl Send for MessageClass
impl Sync for MessageClass
impl Unpin for MessageClass
impl UnwindSafe for MessageClass
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more