Trait breez_sdk_liquid::lightning::ln::wire::Type

pub trait Type: Debug + Writeable {
    // Required method
    fn type_id(&self) -> u16;
}
Expand description

Defines a type identifier for sending messages over the wire.

Messages implementing this trait specify a type and must be Writeable.

Required Methods§

fn type_id(&self) -> u16

Returns the type identifying the message payload.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl Type for Infallible

§

fn type_id(&self) -> u16

Implementors§

§

impl<T> Type for T
where T: Debug + Writeable + Encode,