[][src]Trait lnpbp::lnp::presentation::payload::Extract

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

Required methods

fn get_type(&self) -> TypeId

fn get_payload(&self) -> Source

fn get_tlvs(&self) -> Stream

Loading content...

Provided methods

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

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

Loading content...

Implementors

impl Extract for Payload[src]

Loading content...