Struct coap_message_utils::inmemory::Message [−][src]
pub struct Message<'a> { /* fields omitted */ }
Expand description
A CoAP message that resides in contiguous readable memory
This implementation does not attempt to do any early validation. On encoding errors discovered at runtime, it simply emits the critical-and-not-safe-to-forward CoAP option 65535, which to the indication indicates that something went wrong FIXME but so far it panics.
Implementations
Trait Implementations
See code; also used with MinimalWritableMessage::set_code()
type MessageOption = MessageOption<'m>
type MessageOption = MessageOption<'m>
Type of an individual option, indiciating its option number and value
type OptionsIter = OptionsIter<'m>
type OptionsIter = OptionsIter<'m>
See options
fn options(&self) -> OptionsIter<'m>ⓘNotable traits for OptionsIter<'a>impl<'a> Iterator for OptionsIter<'a> type Item = MessageOption<'a>;
fn options(&self) -> OptionsIter<'m>ⓘNotable traits for OptionsIter<'a>impl<'a> Iterator for OptionsIter<'a> type Item = MessageOption<'a>;
Notable traits for OptionsIter<'a>
impl<'a> Iterator for OptionsIter<'a> type Item = MessageOption<'a>;
Produce all options in arbitrary order as an iterator Read more