breez_sdk_liquid::lightning_125::onion_message::packet

Trait OnionMessageContents

pub trait OnionMessageContents: Writeable + Debug {
    // Required methods
    fn tlv_type(&self) -> u64;
    fn msg_type(&self) -> &'static str;
}
Expand description

The contents of an onion message.

Required Methods§

fn tlv_type(&self) -> u64

Returns the TLV type identifying the message contents. MUST be >= 64.

fn msg_type(&self) -> &'static str

Returns the message type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl OnionMessageContents for Infallible

§

fn tlv_type(&self) -> u64

§

fn msg_type(&self) -> &'static str

Implementors§