pub struct DefaultRouter<G: Deref<Target = NetworkGraph<L>>, L: Deref, S: Deref>where
    L::Target: Logger,
    S::Target: for<'a> LockableScore<'a>,
{ /* private fields */ }
Expand description

A Router implemented using find_route.

Implementations

Creates a new router using the given NetworkGraph, a Logger, and a randomness source random_seed_bytes.

Trait Implementations

Finds a Route between payer and payee for a payment with the given values.
Lets the router know that payment through a specific path has failed.
Lets the router know that payment through a specific path was successful.
Lets the router know that a payment probe was successful.
Lets the router know that a payment probe failed.

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.