coap_message_implementations

Module inmemory_write

Source
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§

Enums§

Traits§

Type Aliases§

  • A message writing into a preallocated buffer consisting of slices