Module inmemory_write

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§

GenericMessage
A message writing into a preallocated buffer
SliceMessage
The easiest implementation of EncodedMessage that is backed by exclusive references.

Enums§

WriteError
Error type for manipulation of crate::inmemory_write messages.

Traits§

EncodedMessage
Data backing a GenericMessage.

Type Aliases§

Message
A message writing into a preallocated buffer consisting of slices