#[repr(u64)]
pub enum MempoolStatusCode {
Accepted,
InvalidSeqNumber,
MempoolIsFull,
TooManyTransactions,
InvalidUpdate,
VmError,
UnknownStatus,
}
Variants§
Trait Implementations§
source§impl Arbitrary for MempoolStatusCode
impl Arbitrary for MempoolStatusCode
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = TupleUnion<((u32, Arc<fn() -> MempoolStatusCode>), (u32, Arc<fn() -> MempoolStatusCode>), (u32, Arc<fn() -> MempoolStatusCode>), (u32, Arc<fn() -> MempoolStatusCode>), (u32, Arc<fn() -> MempoolStatusCode>), (u32, Arc<fn() -> MempoolStatusCode>), (u32, Arc<fn() -> MempoolStatusCode>))>
type Strategy = TupleUnion<((u32, Arc<fn() -> MempoolStatusCode>), (u32, Arc<fn() -> MempoolStatusCode>), (u32, Arc<fn() -> MempoolStatusCode>), (u32, Arc<fn() -> MempoolStatusCode>), (u32, Arc<fn() -> MempoolStatusCode>), (u32, Arc<fn() -> MempoolStatusCode>), (u32, Arc<fn() -> MempoolStatusCode>))>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for MempoolStatusCode
impl Clone for MempoolStatusCode
source§fn clone(&self) -> MempoolStatusCode
fn clone(&self) -> MempoolStatusCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MempoolStatusCode
impl Debug for MempoolStatusCode
source§impl Display for MempoolStatusCode
impl Display for MempoolStatusCode
source§impl From<MempoolStatusCode> for u64
impl From<MempoolStatusCode> for u64
source§fn from(status: MempoolStatusCode) -> u64
fn from(status: MempoolStatusCode) -> u64
Converts to this type from the input type.
source§impl Hash for MempoolStatusCode
impl Hash for MempoolStatusCode
source§impl Ord for MempoolStatusCode
impl Ord for MempoolStatusCode
source§fn cmp(&self, other: &MempoolStatusCode) -> Ordering
fn cmp(&self, other: &MempoolStatusCode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<MempoolStatusCode> for MempoolStatusCode
impl PartialEq<MempoolStatusCode> for MempoolStatusCode
source§fn eq(&self, other: &MempoolStatusCode) -> bool
fn eq(&self, other: &MempoolStatusCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MempoolStatusCode> for MempoolStatusCode
impl PartialOrd<MempoolStatusCode> for MempoolStatusCode
source§fn partial_cmp(&self, other: &MempoolStatusCode) -> Option<Ordering>
fn partial_cmp(&self, other: &MempoolStatusCode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<u64> for MempoolStatusCode
impl TryFrom<u64> for MempoolStatusCode
impl Copy for MempoolStatusCode
impl Eq for MempoolStatusCode
impl StructuralEq for MempoolStatusCode
impl StructuralPartialEq for MempoolStatusCode
Auto Trait Implementations§
impl RefUnwindSafe for MempoolStatusCode
impl Send for MempoolStatusCode
impl Sync for MempoolStatusCode
impl Unpin for MempoolStatusCode
impl UnwindSafe for MempoolStatusCode
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.