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 StructuralEq for Choice
impl StructuralPartialEq for Choice
Auto Trait Implementations
impl RefUnwindSafe for Choice
impl Send for Choice
impl Sync for Choice
impl Unpin for Choice
impl UnwindSafe for Choice
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more