Expand description
Implementation of coap_message::MutableWritableMessage on a slice of memory
GenericMessage is the main struct of this module, with Message being the legacy version
thereof that only supports slices (it is a type alias). A GenericMessage is constructed
based on an EncodedMessage, which can encapsulate anything from slices (when EM is a
SliceMessage), to owned data, or something inbetween (like a single core::cell::RefMut
that is being sliced into).
Note that the crate::inmemory has a similar mechanism but uses a
crate::inmemory::EncodedMessageView struct between the message and its encoded type; at the
next breaking revision, those might be unified.
Structs§
- Generic
Message - A message writing into a preallocated buffer
- Slice
Message - The easiest implementation of
EncodedMessagethat is backed by exclusive references.
Enums§
- Write
Error - Error type for manipulation of crate::inmemory_write messages.
Traits§
- Encoded
Message - Data backing a
GenericMessage.
Type Aliases§
- Message
- A message writing into a preallocated buffer consisting of slices