pub enum Choice {
RejectNew,
ReplaceOld,
InsertNew,
}Expand description
Represents a decision what to do with a new transaction that tries to enter the pool.
Variants§
RejectNew
New transaction should be rejected (i.e. the old transaction that occupies the same spot is better).
ReplaceOld
The old transaction should be dropped in favour of the new one.
InsertNew
The new transaction should be inserted and both (old and new) should stay in the pool.
Trait Implementations§
impl Copy for Choice
impl Eq for Choice
impl StructuralPartialEq for Choice
Auto Trait Implementations§
impl Freeze for Choice
impl RefUnwindSafe for Choice
impl Send for Choice
impl Sync for Choice
impl Unpin for Choice
impl UnwindSafe for Choice
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