pub enum MsgCodeClass {
Method = 0,
Success = 2,
ClientError = 4,
ServerError = 5,
Signal = 7,
}
Expand description
Enum representing the class of a CoAP message code.
Variants§
Method = 0
Class for methods
Success = 2
Class for successful responses
ClientError = 4
Class for client error responses
ServerError = 5
Class for server error responses
Signal = 7
Class for in-band signaling
Implementations§
Trait Implementations§
Source§impl Clone for MsgCodeClass
impl Clone for MsgCodeClass
Source§fn clone(&self) -> MsgCodeClass
fn clone(&self) -> MsgCodeClass
Returns a duplicate 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 MsgCodeClass
impl Debug for MsgCodeClass
Source§impl PartialEq for MsgCodeClass
impl PartialEq for MsgCodeClass
impl Copy for MsgCodeClass
impl Eq for MsgCodeClass
impl StructuralPartialEq for MsgCodeClass
Auto Trait Implementations§
impl Freeze for MsgCodeClass
impl RefUnwindSafe for MsgCodeClass
impl Send for MsgCodeClass
impl Sync for MsgCodeClass
impl Unpin for MsgCodeClass
impl UnwindSafe for MsgCodeClass
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