pub struct Index<T>{ /* private fields */ }
Expand description
Index
The Index is a sorted structure that is used to quickly find matches
The counter is used to make sure each Index is unique, even if the prefix are the same, and also to make sure that earlier indexes matches first
Implementations§
Trait Implementations§
Source§impl<T> From<(T, SubId, SubscriptionGlobalId)> for Index<T>
impl<T> From<(T, SubId, SubscriptionGlobalId)> for Index<T>
Source§fn from((prefix, id, counter): (T, SubId, SubscriptionGlobalId)) -> Self
fn from((prefix, id, counter): (T, SubId, SubscriptionGlobalId)) -> Self
Converts to this type from the input type.
Source§impl<T> Ord for Index<T>
impl<T> Ord for Index<T>
Source§impl<T> PartialOrd for Index<T>
impl<T> PartialOrd for Index<T>
impl<T> Eq for Index<T>
impl<T> StructuralPartialEq for Index<T>
Auto Trait Implementations§
impl<T> Freeze for Index<T>where
T: Freeze,
impl<T> RefUnwindSafe for Index<T>where
T: RefUnwindSafe,
impl<T> Send for Index<T>
impl<T> Sync for Index<T>
impl<T> Unpin for Index<T>where
T: Unpin,
impl<T> UnwindSafe for Index<T>where
T: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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