Struct mutiny_core::utils::MutexGuard
source · pub struct MutexGuard<'a, T: ?Sized + 'a> { /* private fields */ }Trait Implementations§
source§impl<T: ?Sized> Deref for MutexGuard<'_, T>
impl<T: ?Sized> Deref for MutexGuard<'_, T>
source§impl<T: ?Sized> DerefMut for MutexGuard<'_, T>
impl<T: ?Sized> DerefMut for MutexGuard<'_, T>
source§impl<'a, S: Writeable> Writeable for MutexGuard<'a, S>
impl<'a, S: Writeable> Writeable for MutexGuard<'a, S>
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for MutexGuard<'a, T>
impl<'a, T> !Send for MutexGuard<'a, T>
impl<'a, T> !Sync for MutexGuard<'a, T>
impl<'a, T: ?Sized> Unpin for MutexGuard<'a, T>
impl<'a, T> !UnwindSafe for MutexGuard<'a, T>
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> Score for Twhere
S: Score,
T: DerefMut<Target = S>,
impl<S, T> Score for Twhere S: Score, T: DerefMut<Target = S>,
§type ScoreParams = <S as Score>::ScoreParams
type ScoreParams = <S as Score>::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,
short_channel_id: u64,
source: &NodeId,
target: &NodeId,
usage: ChannelUsage,
score_params: &<T as Score>::ScoreParams
) -> u64
fn channel_penalty_msat( &self, short_channel_id: u64, source: &NodeId, target: &NodeId, usage: ChannelUsage, score_params: &<T as Score>::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§fn payment_path_failed(&mut self, path: &Path, short_channel_id: u64)
fn payment_path_failed(&mut self, path: &Path, short_channel_id: u64)
Handles updating channel penalties after failing to route through a channel.
source§fn payment_path_successful(&mut self, path: &Path)
fn payment_path_successful(&mut self, path: &Path)
Handles updating channel penalties after successfully routing along a path.
source§fn probe_failed(&mut self, path: &Path, short_channel_id: u64)
fn probe_failed(&mut self, path: &Path, short_channel_id: u64)
Handles updating channel penalties after a probe over the given path failed.
source§fn probe_successful(&mut self, path: &Path)
fn probe_successful(&mut self, path: &Path)
Handles updating channel penalties after a probe over the given path succeeded.