[][src]Trait lnpbp::lnp::presentation::message::Message

pub trait Message: AsAny {
    fn get_type(&self) -> Type;
fn get_payload(&self) -> Payload;
fn get_tlvs(&self) -> Stream; fn to_type<T>(&self) -> T
    where
        Self: Sized,
        Type: Into<T>
, { ... }
fn try_to_type<T>(&self) -> Result<T, <Type as TryInto<T>>::Error>
    where
        Self: Sized,
        Type: TryInto<T>
, { ... } }

Required methods

fn get_type(&self) -> Type

fn get_payload(&self) -> Payload

fn get_tlvs(&self) -> Stream

Loading content...

Provided methods

fn to_type<T>(&self) -> T where
    Self: Sized,
    Type: Into<T>, 

fn try_to_type<T>(&self) -> Result<T, <Type as TryInto<T>>::Error> where
    Self: Sized,
    Type: TryInto<T>, 

Loading content...

Implementors

impl Message for RawMessage[src]

Loading content...