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

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

Notable traits for Vec<u8>

impl Write for Vec<u8>
; }

Required methods

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

fn get_type(&self) -> TypeId

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

Notable traits for Vec<u8>

impl Write for Vec<u8>

Loading content...

Implementors

impl TypedEnum for Messages[src]

Loading content...