Trait OnionMessageContents

Source
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§

Source

fn tlv_type(&self) -> u64

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

Source

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§

Source§

impl OnionMessageContents for Infallible

Source§

fn tlv_type(&self) -> u64

Source§

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

Implementors§