pub trait RouterExtension<N>where
N: Nomenclature,
Self: Extension<N>,{
// Required methods
fn new() -> Box<dyn RouterExtension<N>>
where Self: Sized;
fn build_route(
&mut self,
payment: PaymentRequest,
route: &mut Vec<Hop<<N as Nomenclature>::HopPayload>>,
);
}Required Methods§
Sourcefn new() -> Box<dyn RouterExtension<N>>where
Self: Sized,
fn new() -> Box<dyn RouterExtension<N>>where
Self: Sized,
Constructs boxed extension objects which can be inserted into router extension pipeline