Struct MessageHandler
pub struct MessageHandler<CM, RM, OM, CustomM>where
CM: Deref,
RM: Deref,
OM: Deref,
CustomM: Deref,
<CM as Deref>::Target: ChannelMessageHandler,
<RM as Deref>::Target: RoutingMessageHandler,
<OM as Deref>::Target: OnionMessageHandler,
<CustomM as Deref>::Target: CustomMessageHandler,{
pub chan_handler: CM,
pub route_handler: RM,
pub onion_message_handler: OM,
pub custom_message_handler: CustomM,
}
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 P2PGossipSync
object or an IgnoringMessageHandler
.
onion_message_handler: OM
A message handler which handles onion messages. This should generally be an
OnionMessenger
, but can also be an IgnoringMessageHandler
.
custom_message_handler: CustomM
A message handler which handles custom messages. The only LDK-provided implementation is
IgnoringMessageHandler
.
Auto Trait Implementations§
impl<CM, RM, OM, CustomM> Freeze for MessageHandler<CM, RM, OM, CustomM>
impl<CM, RM, OM, CustomM> RefUnwindSafe for MessageHandler<CM, RM, OM, CustomM>
impl<CM, RM, OM, CustomM> Send for MessageHandler<CM, RM, OM, CustomM>
impl<CM, RM, OM, CustomM> Sync for MessageHandler<CM, RM, OM, CustomM>
impl<CM, RM, OM, CustomM> Unpin for MessageHandler<CM, RM, OM, CustomM>
impl<CM, RM, OM, CustomM> UnwindSafe for MessageHandler<CM, RM, OM, CustomM>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request