pub enum MempoolError {
DuplicateTransaction,
TooManyEntries,
Policy(PolicyError),
}Expand description
Mempool insertion and mutation errors.
Variants§
DuplicateTransaction
The transaction id already exists in the pool.
TooManyEntries
The slab index can no longer fit the public u32 entry id.
Policy(PolicyError)
The transaction violates mempool policy limits.
Trait Implementations§
Source§impl Clone for MempoolError
impl Clone for MempoolError
Source§fn clone(&self) -> MempoolError
fn clone(&self) -> MempoolError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MempoolError
Source§impl Debug for MempoolError
impl Debug for MempoolError
Source§impl Display for MempoolError
impl Display for MempoolError
impl Eq for MempoolError
Source§impl Error for MempoolError
impl Error for MempoolError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<MempoolError> for RbfError
impl From<MempoolError> for RbfError
Source§fn from(source: MempoolError) -> Self
fn from(source: MempoolError) -> Self
Converts to this type from the input type.
Source§impl From<PolicyError> for MempoolError
impl From<PolicyError> for MempoolError
Source§fn from(source: PolicyError) -> Self
fn from(source: PolicyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MempoolError
impl PartialEq for MempoolError
Source§fn eq(&self, other: &MempoolError) -> bool
fn eq(&self, other: &MempoolError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MempoolError
Auto Trait Implementations§
impl Freeze for MempoolError
impl RefUnwindSafe for MempoolError
impl Send for MempoolError
impl Sync for MempoolError
impl Unpin for MempoolError
impl UnsafeUnpin for MempoolError
impl UnwindSafe for MempoolError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more