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
RejectNewNew transaction should be rejected (i.e. the old transaction that occupies the same spot is better).
ReplaceOldThe old transaction should be dropped in favour of the new one.
InsertNewThe 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 Choicefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Choice[src]
impl Clone for Choicefn clone(&self) -> Choice[src]
fn clone(&self) -> ChoiceReturns 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 Choiceimpl PartialEq for Choice[src]
impl PartialEq for Choicefn eq(&self, other: &Choice) -> bool[src]
fn eq(&self, other: &Choice) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Choice[src]
impl Eq for Choice