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

Constructs a new ErroringMessageHandler

Trait Implementations

Handle an incoming open_channel message from the given peer.

Handle an incoming accept_channel message from the given peer.

Handle an incoming funding_created message from the given peer.

Handle an incoming funding_signed message from the given peer.

Handle an incoming channel_ready message from the given peer.

Handle an incoming shutdown message from the given peer.

Handle an incoming closing_signed message from the given peer.

Handle an incoming update_add_htlc message from the given peer.

Handle an incoming update_fulfill_htlc message from the given peer.

Handle an incoming update_fail_htlc message from the given peer.

Handle an incoming update_fail_malformed_htlc message from the given peer.

Handle an incoming commitment_signed message from the given peer.

Handle an incoming revoke_and_ack message from the given peer.

Handle an incoming update_fee message from the given peer.

Handle an incoming announcement_signatures message from the given peer.

Handle an incoming channel_reestablish message from the given peer.

Handle an incoming channel update from the given peer.

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

Handle a peer reconnecting, possibly generating channel_reestablish message(s).

Handle an incoming error message from the given peer.

Gets the node feature flags which this handler itself supports. All available handlers are queried similarly and their feature flags are OR’d together to form the NodeFeatures which are broadcasted in our NodeAnnouncement message. Read more

Gets the init feature flags which should be sent to the given peer. All available handlers are queried similarly and their feature flags are OR’d together to form the InitFeatures which are sent in our Init message. Read more

The resulting type after dereferencing.

Dereferences the value.

Gets the list of pending events which were generated by previous actions, clearing the list in the process. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.