Trait coap_message::ReadableMessage [−][src]
Associated Types
type Code: Code
[src]
type MessageOption: 'a + MessageOption
[src]
type OptionsIter: Iterator<Item = Self::MessageOption>
[src]
Required methods
fn code(&self) -> Self::Code
[src]
fn payload(&self) -> &[u8]
[src]
fn options(&'a self) -> Self::OptionsIter
[src]
Produce all options in arbitrary order as an iterator
If your options are always produced in an ordered fashion, consider implementing the
WithSortedOptions
trait as well. This should be the case for most CoAP
message backends. Examples of backends where it is not implemented are single-pass reads
over in-place decrypted OSCORE messages.
Implementors
impl<'m> ReadableMessage<'m> for HeapMessage
[src]
type Code = u8
type MessageOption = MessageOption<'m>
type OptionsIter = ReadCursor<'m>
fn code(&self) -> u8
[src]
fn payload(&self) -> &[u8]
[src]
fn options(&'m self) -> ReadCursor<'m>ⓘNotable traits for ReadCursor<'a>
impl<'a> Iterator for ReadCursor<'a> type Item = MessageOption<'a>;
[src]
Notable traits for ReadCursor<'a>
impl<'a> Iterator for ReadCursor<'a> type Item = MessageOption<'a>;