Trait lightning::ln::wire::Type

source ·
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§

source

fn type_id(&self) -> u16

Returns the type identifying the message payload.

Implementations on Foreign Types§

source§

impl Type for Infallible

source§

fn type_id(&self) -> u16

Implementors§

source§

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