pub trait EncodedMessage {
// Required methods
fn code(&self) -> u8;
fn options_and_payload(&self) -> &[u8];
}
Expand description
A trait that can implemented on in-memory encoded messages; then, an EncodedMessageView struct can be placed around the implementer to implement coap_message::ReadableMessage.
Required Methods§
Sourcefn options_and_payload(&self) -> &[u8]
fn options_and_payload(&self) -> &[u8]
The memory area containing the encoded options, payload marker and payload