Trait coap_message::FromOtherOption[][src]

pub trait FromOtherOption<O: OptionNumber> {
    type Error;
    fn convert_from_other(other: O) -> Result<Self, Self::Error>
    where
        Self: Sized
; }

Experimental trait for conversion between option representation, with the goal to later avoid the conversion step via u16 and specialize for T->T conversions.

Associated Types

Loading content...

Required methods

fn convert_from_other(other: O) -> Result<Self, Self::Error> where
    Self: Sized
[src]

Loading content...

Implementors

impl<O: OptionNumber, T: OptionNumber> FromOtherOption<O> for T[src]

type Error = Self::Error

Loading content...