Crate kwap_msg[−][src]
Expand description
kwap_msg
Low-level representation of CoAP messages.
alloc
vs no_alloc
kwap_msg implements CoAP messages as either backed by:
alloc
: dynamically growable heap-allocated buffersno_alloc
: static stack-allocated buffers
alloc::Message
can be much easier to use and performs comparably to no_alloc
, however it does require:
std
or a global allocator
kwap_msg::Message
vs coap_lite::Packet
Benchmarks are available comparing kwap_msg::alloc::Message
, kwap_msg::no_alloc::Message
and coap_lite::Packet
.
Serializing to bytes
Deserializing from bytes
Modules
Identical to crate::no_alloc
, but replaces all fixed-capacity stack-allocated buffers with
dynamically growable structures.
Fixed capacity representations of raw CoAP messages.