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

pub struct IgnoringMessageHandler {}
Expand description

A dummy struct which implements RoutingMessageHandler without storing any routing information or doing any processing. You can provide one of these as the route_handler in a MessageHandler.

Trait Implementations

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

Handle an incoming node_announcement message, returning true if it should be forwarded on, false or returning an Err otherwise. Read more

Handle a channel_announcement message, returning true if it should be forwarded on, false or returning an Err otherwise. Read more

Handle an incoming channel_update message, returning true if it should be forwarded on, false or returning an Err otherwise. Read more

Handle some updates to the route graph that we learned due to an outbound failed payment.

Gets a subset of the channel announcements and updates required to dump our routing table to a remote node, starting at the short_channel_id indicated by starting_point and including the batch_amount entries immediately higher in numerical value than starting_point. Read more

Gets a subset of the node announcements required to dump our routing table to a remote node, starting at the node after the provided publickey and including batch_amount entries immediately higher (as defined by ::cmp) than starting_point. If None is provided for starting_point, we start at the first node. Read more

Called when a connection is established with a peer. This can be used to perform routing table synchronization using a strategy defined by the implementor. Read more

Handles the reply of a query we initiated to learn about channels for a given range of blocks. We can expect to receive one or more replies to a single query. Read more

Handles the reply of a query we initiated asking for routing gossip messages for a list of channels. We should receive this message when a node has completed its best effort to send us the pertaining routing gossip messages. Read more

Handles when a peer asks us to send a list of short_channel_ids for the requested range of blocks. Read more

Handles when a peer asks us to send routing gossip messages for a list of short_channel_ids. 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

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.