[][src]Trait coap_message::OptionsIterableMessage

pub trait OptionsIterableMessage<'a> {
    type MessageOption: 'a + MessageOption;
    type OptionsIter: Iterator<Item = Self::MessageOption>;
    fn options(&'a self) -> Self::OptionsIter;
}

Helper mixin for ReadableMessage that allows using ReadableMessage without giving a lifetime all the time.

Associated Types

Loading content...

Required methods

fn options(&'a self) -> Self::OptionsIter

Produce all options in arbitrary order as an iterator

If your options are always produced in an ordered fashion, consider implementing the OptionsSortedIterableMessage 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.

Loading content...

Implementors

Loading content...