pub struct PooledResource<RM>where
RM: DatabasePool,{ /* private fields */ }
Expand description
The pooled resource
Trait Implementations§
Source§impl<RM> Debug for PooledResource<RM>where
RM: DatabasePool,
impl<RM> Debug for PooledResource<RM>where
RM: DatabasePool,
Source§impl<RM> Deref for PooledResource<RM>where
RM: DatabasePool,
impl<RM> Deref for PooledResource<RM>where
RM: DatabasePool,
Source§type Target = <RM as DatabasePool>::Connection
type Target = <RM as DatabasePool>::Connection
The resulting type after dereferencing.
Source§impl<RM> DerefMut for PooledResource<RM>where
RM: DatabasePool,
impl<RM> DerefMut for PooledResource<RM>where
RM: DatabasePool,
Source§impl<RM> Drop for PooledResource<RM>where
RM: DatabasePool,
impl<RM> Drop for PooledResource<RM>where
RM: DatabasePool,
Auto Trait Implementations§
impl<RM> Freeze for PooledResource<RM>
impl<RM> RefUnwindSafe for PooledResource<RM>
impl<RM> Send for PooledResource<RM>
impl<RM> Sync for PooledResource<RM>
impl<RM> Unpin for PooledResource<RM>
impl<RM> UnwindSafe for PooledResource<RM>
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> 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 moreSource§impl<S, T> ScoreUpdate for Twhere
S: ScoreUpdate,
T: DerefMut<Target = S>,
impl<S, T> ScoreUpdate for Twhere
S: ScoreUpdate,
T: DerefMut<Target = S>,
Source§fn payment_path_failed(
&mut self,
path: &Path,
short_channel_id: u64,
duration_since_epoch: Duration,
)
fn payment_path_failed( &mut self, path: &Path, short_channel_id: u64, duration_since_epoch: Duration, )
Handles updating channel penalties after failing to route through a channel.
Source§fn payment_path_successful(
&mut self,
path: &Path,
duration_since_epoch: Duration,
)
fn payment_path_successful( &mut self, path: &Path, duration_since_epoch: Duration, )
Handles updating channel penalties after successfully routing along a path.
Source§fn probe_failed(
&mut self,
path: &Path,
short_channel_id: u64,
duration_since_epoch: Duration,
)
fn probe_failed( &mut self, path: &Path, short_channel_id: u64, duration_since_epoch: Duration, )
Handles updating channel penalties after a probe over the given path failed.
Source§fn probe_successful(&mut self, path: &Path, duration_since_epoch: Duration)
fn probe_successful(&mut self, path: &Path, duration_since_epoch: Duration)
Handles updating channel penalties after a probe over the given path succeeded.
Source§fn time_passed(&mut self, duration_since_epoch: Duration)
fn time_passed(&mut self, duration_since_epoch: Duration)
Scorers may wish to reduce their certainty of channel liquidity information over time.
Thus, this method is provided to allow scorers to observe the passage of time - the holder
of this object should call this method regularly (generally via the
lightning-background-processor
crate).