pub struct KVStoreSyncWrapper<K: Deref>(pub K)
where
K::Target: KVStoreSync;Expand description
A wrapper around a KVStoreSync that implements the KVStore trait. It is not necessary to use this type
directly.
Tuple Fields§
§0: KTrait Implementations§
Source§impl<K: Clone + Deref> Clone for KVStoreSyncWrapper<K>where
K::Target: KVStoreSync,
impl<K: Clone + Deref> Clone for KVStoreSyncWrapper<K>where
K::Target: KVStoreSync,
Source§fn clone(&self) -> KVStoreSyncWrapper<K>
fn clone(&self) -> KVStoreSyncWrapper<K>
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<K: Deref> Deref for KVStoreSyncWrapper<K>where
K::Target: KVStoreSync,
impl<K: Deref> Deref for KVStoreSyncWrapper<K>where
K::Target: KVStoreSync,
Source§impl<K: Deref> KVStore for KVStoreSyncWrapper<K>where
K::Target: KVStoreSync,
impl<K: Deref> KVStore for KVStoreSyncWrapper<K>where
K::Target: KVStoreSync,
Source§fn read(
&self,
primary_namespace: &str,
secondary_namespace: &str,
key: &str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'static>>
fn read( &self, primary_namespace: &str, secondary_namespace: &str, key: &str, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'static>>
Source§fn write(
&self,
primary_namespace: &str,
secondary_namespace: &str,
key: &str,
buf: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'static>>
fn write( &self, primary_namespace: &str, secondary_namespace: &str, key: &str, buf: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'static>>
Persists the given data under the given
key. Read moreAuto Trait Implementations§
impl<K> Freeze for KVStoreSyncWrapper<K>where
K: Freeze,
impl<K> RefUnwindSafe for KVStoreSyncWrapper<K>where
K: RefUnwindSafe,
impl<K> Send for KVStoreSyncWrapper<K>where
K: Send,
impl<K> Sync for KVStoreSyncWrapper<K>where
K: Sync,
impl<K> Unpin for KVStoreSyncWrapper<K>where
K: Unpin,
impl<K> UnwindSafe for KVStoreSyncWrapper<K>where
K: 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<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