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

pub trait TypedEnum where
    Self: Sized + Clone
{ fn try_from_type(
        type_id: Type,
        data: &dyn Any
    ) -> Result<Self, UnknownTypeError>;
fn get_type(&self) -> Type;
fn get_payload(&self) -> Vec<u8>; }

Required methods

fn try_from_type(
    type_id: Type,
    data: &dyn Any
) -> Result<Self, UnknownTypeError>

fn get_type(&self) -> Type

fn get_payload(&self) -> Vec<u8>

Loading content...

Implementors

Loading content...