Enum primitives::filter::FilterError
source · pub enum FilterError {
InvalidEpochNumber {
from_epoch: u64,
to_epoch: u64,
},
InvalidBlockNumber {
from_block: u64,
to_block: u64,
},
OutOfBoundEpochNumber {
to_epoch: u64,
max_epoch: u64,
},
EpochNumberGapTooLarge {
from_epoch: u64,
to_epoch: u64,
max_gap: u64,
},
BlockNumberGapTooLarge {
from_block: u64,
to_block: u64,
max_gap: u64,
},
UnableToVerify {
epoch: u64,
latest_verifiable: u64,
},
UnknownBlock {
hash: H256,
},
EpochAlreadyPruned {
epoch: u64,
min: u64,
},
BlockAlreadyPruned {
block_hash: H256,
},
BlockNotExecutedYet {
block_hash: H256,
},
PivotChainReorg {
epoch: u64,
from: H256,
to: H256,
},
Custom(String),
}
Expand description
Errors concerning log filtering.
Variants§
InvalidEpochNumber
Filter has wrong epoch numbers set.
InvalidBlockNumber
Filter has wrong block numbers set.
OutOfBoundEpochNumber
EpochNumberGapTooLarge
BlockNumberGapTooLarge
UnableToVerify
Roots for verifying the requested epochs are unavailable.
UnknownBlock
Fields
§
hash: H256
The block requested does not exist
EpochAlreadyPruned
Epoch cannot be served as it was already pruned from db on a full node
BlockAlreadyPruned
Fields
§
block_hash: H256
Block cannot be served as it was already pruned from db on a full node
BlockNotExecutedYet
Fields
§
block_hash: H256
Block has not been executed yet
PivotChainReorg
There was a pivot chain reorganization during log filtering
Custom(String)
Filter error with custom error message (e.g. timeout)
Trait Implementations§
source§impl Clone for FilterError
impl Clone for FilterError
source§fn clone(&self) -> FilterError
fn clone(&self) -> FilterError
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 FilterError
impl Debug for FilterError
source§impl Display for FilterError
impl Display for FilterError
source§impl Error for FilterError
impl Error for FilterError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl From<String> for FilterError
impl From<String> for FilterError
source§impl PartialEq for FilterError
impl PartialEq for FilterError
source§fn eq(&self, other: &FilterError) -> bool
fn eq(&self, other: &FilterError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FilterError
Auto Trait Implementations§
impl RefUnwindSafe for FilterError
impl Send for FilterError
impl Sync for FilterError
impl Unpin for FilterError
impl UnwindSafe for FilterError
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