pub struct DfsPathSelectorConfig {
pub max_iterations: usize,
pub node_score_threshold: f64,
pub edge_score_threshold: f64,
pub max_first_hop_latency: Option<Duration>,
pub allow_zero_edge_weight: bool,
}Fields§
§max_iterations: usizeThe maximum number of iterations before a path selection fails Default is 100
node_score_threshold: f64Peer quality threshold for a node to be taken into account. Default is 0.5
edge_score_threshold: f64Channel score threshold for a channel to be taken into account. Default is 0
max_first_hop_latency: Option<Duration>The maximum latency of the first hop Default is 100 ms
allow_zero_edge_weight: boolIf true, include paths with payment channels, which have no
funds in it. By default, that option is set to false to
prevent tickets being dropped immediately.
Defaults to false.
Trait Implementations§
Source§impl Clone for DfsPathSelectorConfig
impl Clone for DfsPathSelectorConfig
Source§fn clone(&self) -> DfsPathSelectorConfig
fn clone(&self) -> DfsPathSelectorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DfsPathSelectorConfig
impl Debug for DfsPathSelectorConfig
Source§impl Default for DfsPathSelectorConfig
impl Default for DfsPathSelectorConfig
Source§impl PartialEq for DfsPathSelectorConfig
impl PartialEq for DfsPathSelectorConfig
impl Copy for DfsPathSelectorConfig
impl StructuralPartialEq for DfsPathSelectorConfig
Auto Trait Implementations§
impl Freeze for DfsPathSelectorConfig
impl RefUnwindSafe for DfsPathSelectorConfig
impl Send for DfsPathSelectorConfig
impl Sync for DfsPathSelectorConfig
impl Unpin for DfsPathSelectorConfig
impl UnwindSafe for DfsPathSelectorConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more