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
.