[][src]Trait async_coap::option::OptionInsertExt

pub trait OptionInsertExt {
    fn insert_option<'a, T>(
        &mut self,
        key: OptionKey<T>,
        value: T
    ) -> Result<(), Error>
    where
        T: Into<OptionValue<'a>>
; }

Extension class for additional helper methods for OptionInsertExt.

Required methods

fn insert_option<'a, T>(
    &mut self,
    key: OptionKey<T>,
    value: T
) -> Result<(), Error> where
    T: Into<OptionValue<'a>>, 

Inserts an option into the message with a value of the appropriate type. Calling this method with out-of-order keys will incur a significant performance penalty.

Loading content...

Implementors

impl<O: ?Sized> OptionInsertExt for O where
    O: OptionInsert
[src]

Loading content...