Enum tetsy_transaction_pool::scoring::Choice[][src]

pub enum Choice {
    RejectNew,
    ReplaceOld,
    InsertNew,
}

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 Clone for Choice[src]

impl Copy for Choice[src]

impl Debug for Choice[src]

impl Eq for Choice[src]

impl PartialEq<Choice> for Choice[src]

impl StructuralEq for Choice[src]

impl StructuralPartialEq for Choice[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.