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§
Source§impl Clone for UnclesError
impl Clone for UnclesError
Source§fn clone(&self) -> UnclesError
fn clone(&self) -> UnclesError
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 UnclesError
impl Debug for UnclesError
Source§impl Display for UnclesError
impl Display for UnclesError
Source§impl Error for UnclesError
impl Error for UnclesError
1.30.0 · 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<UnclesError> for BlockError
impl From<UnclesError> for BlockError
Source§fn from(error: UnclesError) -> Self
fn from(error: UnclesError) -> Self
Converts to this type from the input type.
Source§impl From<UnclesError> for Error
impl From<UnclesError> for Error
Source§fn from(error: UnclesError) -> Self
fn from(error: UnclesError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnclesError
impl PartialEq for UnclesError
impl Eq for UnclesError
impl StructuralPartialEq for UnclesError
Auto Trait Implementations§
impl !Freeze for UnclesError
impl RefUnwindSafe for UnclesError
impl Send for UnclesError
impl Sync for UnclesError
impl Unpin for UnclesError
impl UnwindSafe for UnclesError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more