Enum ckb_verification::UnclesError
source · [−]pub enum UnclesError {
OverCount {
max: u32,
actual: u32,
},
InvalidNumber,
InvalidTarget,
InvalidDifficultyEpoch,
ProposalsHash,
ProposalDuplicate,
Duplicate(Byte32),
DoubleInclusion(Byte32),
DescendantLimit,
ExceededMaximumProposalsLimit,
}Expand description
Errors due to the fact that the uncle rule is not respected.
Variants
OverCount
The number of block uncles exceeds limit.
InvalidNumber
There is an uncle whose number is greater than or equal to current block number.
InvalidTarget
There is an uncle who belongs to a different epoch from the current block.
InvalidDifficultyEpoch
There is an uncle who belongs to a different epoch from the current block.
ProposalsHash
There is an uncle whose proposals-hash does not match with the calculated result.
ProposalDuplicate
There is an uncle whose proposals have duplicated items.
Duplicate(Byte32)
There are duplicated uncles in the current block.
DoubleInclusion(Byte32)
There is an uncle that has already been included before.
DescendantLimit
The depth of uncle descendant exceeds limit.
ExceededMaximumProposalsLimit
The number of uncle proposals exceeds limit.
Trait Implementations
sourceimpl Clone for UnclesError
impl Clone for UnclesError
sourcefn clone(&self) -> UnclesError
fn clone(&self) -> UnclesError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for UnclesError
impl Debug for UnclesError
sourceimpl Display for UnclesError
impl Display for UnclesError
sourceimpl Error for UnclesError
impl Error for UnclesError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<UnclesError> for BlockError
impl From<UnclesError> for BlockError
sourcefn from(error: UnclesError) -> Self
fn from(error: UnclesError) -> Self
Converts to this type from the input type.
sourceimpl From<UnclesError> for Error
impl From<UnclesError> for Error
sourcefn from(error: UnclesError) -> Self
fn from(error: UnclesError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<UnclesError> for UnclesError
impl PartialEq<UnclesError> for UnclesError
sourcefn eq(&self, other: &UnclesError) -> bool
fn eq(&self, other: &UnclesError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &UnclesError) -> bool
fn ne(&self, other: &UnclesError) -> bool
This method tests for !=.
impl Eq for UnclesError
impl StructuralEq for UnclesError
impl StructuralPartialEq for UnclesError
Auto Trait Implementations
impl RefUnwindSafe for UnclesError
impl Send for UnclesError
impl Sync for UnclesError
impl Unpin for UnclesError
impl UnwindSafe for UnclesError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more