Module coap_message::heapmessage[][src]

This module provides HeapMessage, an implementation of all the message traits backed by heap memory.

It serves both to easily get an owned copy of a message (using HeapMessage::new() and MinimalWritableMessage::set_from_message()), especially if that needs frequent manipulation of options, and as an example of how to the message traits can be implemented.

This module is available only if the alloc feature is enabled on this crate.

Cross references:

  • The coap-lite crate's Packet struct is very similar to this, to the point where their MutableWritableMessage implementations are identical. They differ by whether or not they carry CoAP-over-UDP header information.

Structs

HeapMessage

A heap CoAP message backed by allocated memory

MessageOption
ReadCursor