coap_message_implementations

Module inmemory

Source
Expand description

Implementation of coap_message::ReadableMessage based on a serialized message

Message is the main struct of this module – if the message is available as a slice that lives as long as the message, that’s the type to use. Otherwise, implement EncodedMessage on your data, and wrap it in an EncodedMessageView. (The Message is nothing else than the options/payload slice plus the code in a struct).

Note that the crate::inmemory_write has a similar mechanism but does without an equivalent “view”; at the next breaking revision, those might be unified.

Structs§

Constants§

  • Option value used by this library to indicate a format error in the message that was not detected by the time option / payload processing was started.

Traits§