Struct lightning::ln::peer_handler::ErroringMessageHandler
source · [−]pub struct ErroringMessageHandler { /* private fields */ }
Expand description
A dummy struct which implements ChannelMessageHandler
without having any channels.
You can provide one of these as the route_handler in a MessageHandler.
Implementations
Trait Implementations
sourceimpl ChannelMessageHandler for ErroringMessageHandler
impl ChannelMessageHandler for ErroringMessageHandler
sourcefn handle_open_channel(
&self,
their_node_id: &PublicKey,
_their_features: InitFeatures,
msg: &OpenChannel
)
fn handle_open_channel(
&self,
their_node_id: &PublicKey,
_their_features: InitFeatures,
msg: &OpenChannel
)
Handle an incoming open_channel message from the given peer.
sourcefn handle_accept_channel(
&self,
their_node_id: &PublicKey,
_their_features: InitFeatures,
msg: &AcceptChannel
)
fn handle_accept_channel(
&self,
their_node_id: &PublicKey,
_their_features: InitFeatures,
msg: &AcceptChannel
)
Handle an incoming accept_channel message from the given peer.
sourcefn handle_funding_created(
&self,
their_node_id: &PublicKey,
msg: &FundingCreated
)
fn handle_funding_created(
&self,
their_node_id: &PublicKey,
msg: &FundingCreated
)
Handle an incoming funding_created message from the given peer.
sourcefn handle_funding_signed(&self, their_node_id: &PublicKey, msg: &FundingSigned)
fn handle_funding_signed(&self, their_node_id: &PublicKey, msg: &FundingSigned)
Handle an incoming funding_signed message from the given peer.
sourcefn handle_funding_locked(&self, their_node_id: &PublicKey, msg: &FundingLocked)
fn handle_funding_locked(&self, their_node_id: &PublicKey, msg: &FundingLocked)
Handle an incoming funding_locked message from the given peer.
sourcefn handle_shutdown(
&self,
their_node_id: &PublicKey,
_their_features: &InitFeatures,
msg: &Shutdown
)
fn handle_shutdown(
&self,
their_node_id: &PublicKey,
_their_features: &InitFeatures,
msg: &Shutdown
)
Handle an incoming shutdown message from the given peer.
sourcefn handle_closing_signed(&self, their_node_id: &PublicKey, msg: &ClosingSigned)
fn handle_closing_signed(&self, their_node_id: &PublicKey, msg: &ClosingSigned)
Handle an incoming closing_signed message from the given peer.
sourcefn handle_update_add_htlc(&self, their_node_id: &PublicKey, msg: &UpdateAddHTLC)
fn handle_update_add_htlc(&self, their_node_id: &PublicKey, msg: &UpdateAddHTLC)
Handle an incoming update_add_htlc message from the given peer.
sourcefn handle_update_fulfill_htlc(
&self,
their_node_id: &PublicKey,
msg: &UpdateFulfillHTLC
)
fn handle_update_fulfill_htlc(
&self,
their_node_id: &PublicKey,
msg: &UpdateFulfillHTLC
)
Handle an incoming update_fulfill_htlc message from the given peer.
sourcefn handle_update_fail_htlc(
&self,
their_node_id: &PublicKey,
msg: &UpdateFailHTLC
)
fn handle_update_fail_htlc(
&self,
their_node_id: &PublicKey,
msg: &UpdateFailHTLC
)
Handle an incoming update_fail_htlc message from the given peer.
sourcefn handle_update_fail_malformed_htlc(
&self,
their_node_id: &PublicKey,
msg: &UpdateFailMalformedHTLC
)
fn handle_update_fail_malformed_htlc(
&self,
their_node_id: &PublicKey,
msg: &UpdateFailMalformedHTLC
)
Handle an incoming update_fail_malformed_htlc message from the given peer.
sourcefn handle_commitment_signed(
&self,
their_node_id: &PublicKey,
msg: &CommitmentSigned
)
fn handle_commitment_signed(
&self,
their_node_id: &PublicKey,
msg: &CommitmentSigned
)
Handle an incoming commitment_signed message from the given peer.
sourcefn handle_revoke_and_ack(&self, their_node_id: &PublicKey, msg: &RevokeAndACK)
fn handle_revoke_and_ack(&self, their_node_id: &PublicKey, msg: &RevokeAndACK)
Handle an incoming revoke_and_ack message from the given peer.
sourcefn handle_update_fee(&self, their_node_id: &PublicKey, msg: &UpdateFee)
fn handle_update_fee(&self, their_node_id: &PublicKey, msg: &UpdateFee)
Handle an incoming update_fee message from the given peer.
sourcefn handle_announcement_signatures(
&self,
their_node_id: &PublicKey,
msg: &AnnouncementSignatures
)
fn handle_announcement_signatures(
&self,
their_node_id: &PublicKey,
msg: &AnnouncementSignatures
)
Handle an incoming announcement_signatures message from the given peer.
sourcefn handle_channel_reestablish(
&self,
their_node_id: &PublicKey,
msg: &ChannelReestablish
)
fn handle_channel_reestablish(
&self,
their_node_id: &PublicKey,
msg: &ChannelReestablish
)
Handle an incoming channel_reestablish message from the given peer.
sourcefn handle_channel_update(
&self,
_their_node_id: &PublicKey,
_msg: &ChannelUpdate
)
fn handle_channel_update(
&self,
_their_node_id: &PublicKey,
_msg: &ChannelUpdate
)
Handle an incoming channel update from the given peer.
sourcefn peer_disconnected(
&self,
_their_node_id: &PublicKey,
_no_connection_possible: bool
)
fn peer_disconnected(
&self,
_their_node_id: &PublicKey,
_no_connection_possible: bool
)
Indicates a connection to the peer failed/an existing connection was lost. If no connection is believed to be possible in the future (eg they’re sending us messages we don’t understand or indicate they require unknown feature bits), no_connection_possible is set and any outstanding channels should be failed. Read more
sourcefn peer_connected(&self, _their_node_id: &PublicKey, _msg: &Init)
fn peer_connected(&self, _their_node_id: &PublicKey, _msg: &Init)
Handle a peer reconnecting, possibly generating channel_reestablish message(s).
sourcefn handle_error(&self, _their_node_id: &PublicKey, _msg: &ErrorMessage)
fn handle_error(&self, _their_node_id: &PublicKey, _msg: &ErrorMessage)
Handle an incoming error message from the given peer.
sourceimpl Deref for ErroringMessageHandler
impl Deref for ErroringMessageHandler
type Target = ErroringMessageHandler
type Target = ErroringMessageHandler
The resulting type after dereferencing.
Auto Trait Implementations
impl RefUnwindSafe for ErroringMessageHandler
impl Send for ErroringMessageHandler
impl Sync for ErroringMessageHandler
impl Unpin for ErroringMessageHandler
impl UnwindSafe for ErroringMessageHandler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more