pub struct Version(pub u8);Expand description
Version of the CoAP protocol that the message adheres to.
Right now, this will always be 1, but may support additional values in the future.
See RFC7252 - Message Details for context
Tuple Fields§
§0: u8Trait Implementations§
Source§impl PartialOrd for Version
impl PartialOrd for Version
impl Copy for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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