Module kwap_msg::alloc [−][src]
Expand description
Identical to crate::no_alloc
, but replaces all fixed-capacity stack-allocated buffers with
dynamically growable structures.
Depends on crate feature alloc
and #[global_allocator]
(if your crate is #[no_std]
).
Re-exports
pub use crate::no_alloc::Code;
pub use crate::no_alloc::Id;
pub use crate::no_alloc::Token;
pub use crate::no_alloc::Type;
pub use crate::no_alloc::Version;
Structs
Iterator yielded by EnumerateOptNumbers
, wrapping an Iterator
over Opt
s.
Low-level representation of a message that has been parsed from a byte array
Low-level representation of a freshly parsed CoAP Option
The “Option Delta” is the difference between this Option’s Number and the previous Option’s number.
The Option number identifies which Option is being set (e.g. Content-Format has a Number of 12)
Option Value
Low-level representation of the message payload
Traits
Creates an iterator which gives the current opt’s number as well as the option.
Trait for getting the delta from either heap or heapless Opts