pub struct EmptyNodeIdLookUp {}Expand description
A NodeIdLookUp that always returns None.
Trait Implementations§
Source§impl Deref for EmptyNodeIdLookUp
impl Deref for EmptyNodeIdLookUp
Source§impl NodeIdLookUp for EmptyNodeIdLookUp
impl NodeIdLookUp for EmptyNodeIdLookUp
Auto Trait Implementations§
impl Freeze for EmptyNodeIdLookUp
impl RefUnwindSafe for EmptyNodeIdLookUp
impl Send for EmptyNodeIdLookUp
impl Sync for EmptyNodeIdLookUp
impl Unpin for EmptyNodeIdLookUp
impl UnwindSafe for EmptyNodeIdLookUp
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<S, T> ScoreLookUp for Twhere
S: ScoreLookUp,
T: Deref<Target = S>,
impl<S, T> ScoreLookUp for Twhere
S: ScoreLookUp,
T: Deref<Target = S>,
Source§type ScoreParams = <S as ScoreLookUp>::ScoreParams
type ScoreParams = <S as ScoreLookUp>::ScoreParams
A configurable type which should contain various passed-in parameters for configuring the scorer,
on a per-routefinding-call basis through to the scorer methods,
which are used to determine the parameters for the suitability of channels for use.
Source§fn channel_penalty_msat(
&self,
candidate: &CandidateRouteHop<'_>,
usage: ChannelUsage,
score_params: &<T as ScoreLookUp>::ScoreParams,
) -> u64
fn channel_penalty_msat( &self, candidate: &CandidateRouteHop<'_>, usage: ChannelUsage, score_params: &<T as ScoreLookUp>::ScoreParams, ) -> u64
Returns the fee in msats willing to be paid to avoid routing
send_amt_msat through the
given channel in the direction from source to target. Read more