Struct lightning::ln::peer_handler::MessageHandler[][src]

pub struct MessageHandler<CM: Deref, RM: Deref> where
    CM::Target: ChannelMessageHandler,
    RM::Target: RoutingMessageHandler
{ pub chan_handler: CM, pub route_handler: RM, }
Expand description

Provides references to trait impls which handle different types of messages.

Fields

chan_handler: CM

A message handler which handles messages specific to channels. Usually this is just a ChannelManager object or an ErroringMessageHandler.

route_handler: RM

A message handler which handles messages updating our knowledge of the network channel graph. Usually this is just a NetGraphMsgHandler object or an IgnoringMessageHandler.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.