Enum 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 Debug for Choice
[src]
impl Debug for Choice
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Choice
[src]
impl Clone for Choice
fn clone(&self) -> Choice
[src]
fn clone(&self) -> Choice
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Choice
[src]
impl Copy for Choice
impl PartialEq for Choice
[src]
impl PartialEq for Choice
fn eq(&self, other: &Choice) -> bool
[src]
fn eq(&self, other: &Choice) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Choice
[src]
impl Eq for Choice