pub enum MsgType {
Con = 0,
Non = 1,
Ack = 2,
Res = 3,
}
Expand description
Enum representing the CoAP message type: CON
, NON
, ACK
, and RES
.
Variants§
Con = 0
Variant for confirmable CoAP messages.
Non = 1
Variant for non-confirmable CoAP messages.
Ack = 2
Variant for CoAP message acknowledgements.
Res = 3
Variant for CoAP reset messages.
Implementations§
Trait Implementations§
impl Copy for MsgType
impl Eq for MsgType
impl StructuralPartialEq for MsgType
Auto Trait Implementations§
impl Freeze for MsgType
impl RefUnwindSafe for MsgType
impl Send for MsgType
impl Sync for MsgType
impl Unpin for MsgType
impl UnwindSafe for MsgType
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