breez_sdk_liquid::lightning_125::onion_message::messenger

Trait AOnionMessenger

pub trait AOnionMessenger {
Show 17 associated items type EntropySource: EntropySource + ?Sized; type ES: Deref<Target = Self::EntropySource>; type NodeSigner: NodeSigner + ?Sized; type NS: Deref<Target = Self::NodeSigner>; type Logger: Logger + ?Sized; type L: Deref<Target = Self::Logger>; type NodeIdLookUp: NodeIdLookUp + ?Sized; type NL: Deref<Target = Self::NodeIdLookUp>; type MessageRouter: MessageRouter + ?Sized; type MR: Deref<Target = Self::MessageRouter>; type OffersMessageHandler: OffersMessageHandler + ?Sized; type OMH: Deref<Target = Self::OffersMessageHandler>; type AsyncPaymentsMessageHandler: AsyncPaymentsMessageHandler + ?Sized; type APH: Deref<Target = Self::AsyncPaymentsMessageHandler>; type CustomOnionMessageHandler: CustomOnionMessageHandler + ?Sized; type CMH: Deref<Target = Self::CustomOnionMessageHandler>; // Required method fn get_om( &self, ) -> &OnionMessenger<Self::ES, Self::NS, Self::L, Self::NL, Self::MR, Self::OMH, Self::APH, Self::CMH>;
}
Expand description

A trivial trait which describes any OnionMessenger.

This is not exported to bindings users as general cover traits aren’t useful in other languages.

Required Associated Types§

type EntropySource: EntropySource + ?Sized

A type implementing EntropySource

type ES: Deref<Target = Self::EntropySource>

A type that may be dereferenced to Self::EntropySource

type NodeSigner: NodeSigner + ?Sized

A type implementing NodeSigner

type NS: Deref<Target = Self::NodeSigner>

A type that may be dereferenced to Self::NodeSigner

type Logger: Logger + ?Sized

A type implementing Logger

type L: Deref<Target = Self::Logger>

A type that may be dereferenced to Self::Logger

type NodeIdLookUp: NodeIdLookUp + ?Sized

A type implementing NodeIdLookUp

type NL: Deref<Target = Self::NodeIdLookUp>

A type that may be dereferenced to Self::NodeIdLookUp

type MessageRouter: MessageRouter + ?Sized

A type implementing MessageRouter

type MR: Deref<Target = Self::MessageRouter>

A type that may be dereferenced to Self::MessageRouter

type OffersMessageHandler: OffersMessageHandler + ?Sized

A type implementing OffersMessageHandler

type OMH: Deref<Target = Self::OffersMessageHandler>

A type that may be dereferenced to Self::OffersMessageHandler

type AsyncPaymentsMessageHandler: AsyncPaymentsMessageHandler + ?Sized

A type implementing AsyncPaymentsMessageHandler

type APH: Deref<Target = Self::AsyncPaymentsMessageHandler>

A type that may be dereferenced to Self::AsyncPaymentsMessageHandler

type CustomOnionMessageHandler: CustomOnionMessageHandler + ?Sized

A type implementing CustomOnionMessageHandler

type CMH: Deref<Target = Self::CustomOnionMessageHandler>

A type that may be dereferenced to Self::CustomOnionMessageHandler

Required Methods§

fn get_om( &self, ) -> &OnionMessenger<Self::ES, Self::NS, Self::L, Self::NL, Self::MR, Self::OMH, Self::APH, Self::CMH>

Returns a reference to the actual OnionMessenger object.

Implementors§

§

impl<ES, NS, L, NL, MR, OMH, APH, CMH> AOnionMessenger for OnionMessenger<ES, NS, L, NL, MR, OMH, APH, CMH>

§

type EntropySource = <ES as Deref>::Target

§

type ES = ES

§

type NodeSigner = <NS as Deref>::Target

§

type NS = NS

§

type Logger = <L as Deref>::Target

§

type L = L

§

type NodeIdLookUp = <NL as Deref>::Target

§

type NL = NL

§

type MessageRouter = <MR as Deref>::Target

§

type MR = MR

§

type OffersMessageHandler = <OMH as Deref>::Target

§

type OMH = OMH

§

type AsyncPaymentsMessageHandler = <APH as Deref>::Target

§

type APH = APH

§

type CustomOnionMessageHandler = <CMH as Deref>::Target

§

type CMH = CMH