Struct coap_message_implementations::inmemory::Message
source · pub struct Message<'a> { /* private fields */ }
Expand description
A CoAP message that resides in contiguous readable memory
This implementation does not attempt to do any early validation. On encoding errors discovered at runtime, it simply emits the critical-and-not-safe-to-forward CoAP option 65535 (OPTION_INVALID), which to the indication indicates that something went wrong
Implementations§
Trait Implementations§
source§impl<'m> ReadableMessage for Message<'m>
impl<'m> ReadableMessage for Message<'m>
§type Code = u8
type Code = u8
See
Self::code()
§type MessageOption<'a> = MessageOption<'a>
where
Self: 'a
type MessageOption<'a> = MessageOption<'a> where Self: 'a
Type of an individual option, indiciating its option number and value
§type OptionsIter<'a> = OptionsIter<'a>
where
Self: 'a
type OptionsIter<'a> = OptionsIter<'a> where Self: 'a
See
Self::options()
Auto Trait Implementations§
impl<'a> Freeze for Message<'a>
impl<'a> !RefUnwindSafe for Message<'a>
impl<'a> Send for Message<'a>
impl<'a> !Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> UnwindSafe for Message<'a>
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