pub struct DefaultRouter<G: Deref<Target = NetworkGraph<L>>, L: Deref>where
    L::Target: Logger,
{ /* 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.

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.