pub enum CoapMessageType {
Confirmable,
NonConfirmable,
Acknowledgement,
Reset,
}Expand description
CoAP message type (RFC 7252 §3).
Variants§
Confirmable
Confirmable (CON): requires acknowledgement.
NonConfirmable
Non-confirmable (NON): fire-and-forget.
Acknowledgement
Acknowledgement (ACK): confirms receipt of CON.
Reset
Reset (RST): indicates message was received but cannot be processed.
Trait Implementations§
Source§impl Clone for CoapMessageType
impl Clone for CoapMessageType
Source§fn clone(&self) -> CoapMessageType
fn clone(&self) -> CoapMessageType
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 CoapMessageType
impl Debug for CoapMessageType
Source§impl Hash for CoapMessageType
impl Hash for CoapMessageType
Source§impl PartialEq for CoapMessageType
impl PartialEq for CoapMessageType
impl Copy for CoapMessageType
impl Eq for CoapMessageType
impl StructuralPartialEq for CoapMessageType
Auto Trait Implementations§
impl Freeze for CoapMessageType
impl RefUnwindSafe for CoapMessageType
impl Send for CoapMessageType
impl Sync for CoapMessageType
impl Unpin for CoapMessageType
impl UnsafeUnpin for CoapMessageType
impl UnwindSafe for CoapMessageType
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