Crate coap_message_implementations

Source
Expand description

CoAP message implementation tools and implementations

This crate contains utilities for creating own implementations of the coap_message traits, as well as some basic implementations that may be useful for CoAP libraries.

The implementations aim for being easy and straightforward. While they are largely usable on embedded systems, it is expected that more optimized versions are used in that area when byte comes to shove.

§Feature flags

  • alloc — Enable the heap module with its heap::HeapMessage implementation.
  • downcast — Enable [Message::downcast_from]. This is feature gated because it is the only place in the crate that uses unsafe code, allowing users who do not need it (it is a niche feature) more trust in the crate’s correctness.

Modules§

heapalloc
This module provides HeapMessage, an implementation of all the message traits backed by heap memory.
inmemory
Implementation of coap_message::ReadableMessage based on a serialized message
inmemory_write
Implementation of coap_message::MutableWritableMessage on a slice of memory
option_extension
Tools for handling the extension encoding of CoAP options
option_iteration
Tools for iterating over encoded messages