pub struct ReplaceByScoreReadinessAndValidity<S, C> { /* private fields */ }
Expand description
Choose whether to replace based on the sender, the score, the Readiness
,
and finally the Validity
of the transactions being compared.
Implementations
sourceimpl<S, C> ReplaceByScoreReadinessAndValidity<S, C>
impl<S, C> ReplaceByScoreReadinessAndValidity<S, C>
Trait Implementations
sourceimpl<S: Debug, C: Debug> Debug for ReplaceByScoreReadinessAndValidity<S, C>
impl<S: Debug, C: Debug> Debug for ReplaceByScoreReadinessAndValidity<S, C>
sourceimpl<T, S, C> ShouldReplace<T> for ReplaceByScoreReadinessAndValidity<S, C> where
T: VerifiedTransaction<Sender = Address> + ScoredTransaction + PartialEq,
S: Scoring<T>,
C: NonceClient + BalanceClient,
impl<T, S, C> ShouldReplace<T> for ReplaceByScoreReadinessAndValidity<S, C> where
T: VerifiedTransaction<Sender = Address> + ScoredTransaction + PartialEq,
S: Scoring<T>,
C: NonceClient + BalanceClient,
sourcefn should_replace(
&self,
old: &ReplaceTransaction<'_, T>,
new: &ReplaceTransaction<'_, T>
) -> Choice
fn should_replace(
&self,
old: &ReplaceTransaction<'_, T>,
new: &ReplaceTransaction<'_, T>
) -> Choice
Decides if new
should push out old
transaction from the pool. Read more
Auto Trait Implementations
impl<S, C> RefUnwindSafe for ReplaceByScoreReadinessAndValidity<S, C> where
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, C> Send for ReplaceByScoreReadinessAndValidity<S, C> where
C: Send,
S: Send,
impl<S, C> Sync for ReplaceByScoreReadinessAndValidity<S, C> where
C: Sync,
S: Sync,
impl<S, C> Unpin for ReplaceByScoreReadinessAndValidity<S, C> where
C: Unpin,
S: Unpin,
impl<S, C> UnwindSafe for ReplaceByScoreReadinessAndValidity<S, C> where
C: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more