pub struct DefaultTimeProvider;Available on crate feature
time only.Expand description
Default time provider using the system clock.
You likely don’t need to use this directly, it is used automatically with
LiquidityManager::new
Trait Implementations§
Source§impl Clone for DefaultTimeProvider
impl Clone for DefaultTimeProvider
Source§fn clone(&self) -> DefaultTimeProvider
fn clone(&self) -> DefaultTimeProvider
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 DefaultTimeProvider
impl Debug for DefaultTimeProvider
Source§impl Deref for DefaultTimeProvider
impl Deref for DefaultTimeProvider
Source§impl TimeProvider for DefaultTimeProvider
impl TimeProvider for DefaultTimeProvider
Source§fn duration_since_epoch(&self) -> Duration
fn duration_since_epoch(&self) -> Duration
Get the current time as a duration since the Unix epoch.
Auto Trait Implementations§
impl Freeze for DefaultTimeProvider
impl RefUnwindSafe for DefaultTimeProvider
impl Send for DefaultTimeProvider
impl Sync for DefaultTimeProvider
impl Unpin for DefaultTimeProvider
impl UnwindSafe for DefaultTimeProvider
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<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