Enum sc_consensus_babe::Error [−][src]
pub enum Error<B: BlockT> {}Show variants
MultiplePreRuntimeDigests, NoPreRuntimeDigest, MultipleEpochChangeDigests, MultipleConfigChangeDigests, Extraction(Error), FetchEpoch(B::Hash), TooFarInFuture(B::Hash), ParentUnavailable(B::Hash, B::Hash), SlotMustIncrease(Slot, Slot), HeaderBadSeal(B::Hash), HeaderUnsealed(B::Hash), SlotAuthorNotFound, SecondarySlotAssignmentsDisabled, BadSignature(B::Hash), InvalidAuthor(AuthorityId, AuthorityId), NoSecondaryAuthorExpected, VRFVerificationOfBlockFailed(AuthorityId, u128), VRFVerificationFailed(SignatureError), FetchParentHeader(Error), ExpectedEpochChange(B::Hash, Slot), UnexpectedConfigChange, UnexpectedEpochChange, ParentBlockNoAssociatedWeight(B::Hash), CheckInherents(Error), CheckInherentsUnhandled(InherentIdentifier), CreateInherents(Error), Client(Error), RuntimeApi(ApiError), ForkTree(Box<Error<Error>>),
Expand description
Errors encountered by the babe authorship task.
Variants
Multiple BABE pre-runtime digests
No BABE pre-runtime digest found
Multiple BABE epoch change digests
Multiple BABE config change digests
Extraction(Error)
Could not extract timestamp and slot
FetchEpoch(B::Hash)
Could not fetch epoch
TooFarInFuture(B::Hash)
Header rejected: too far in the future
Parent unavailable. Cannot import
Slot number must increase
HeaderBadSeal(B::Hash)
Header has a bad seal
HeaderUnsealed(B::Hash)
Header is unsealed
Slot author not found
Secondary slot assignments are disabled for the current epoch.
BadSignature(B::Hash)
Bad signature
InvalidAuthor(AuthorityId, AuthorityId)
Invalid author: Expected secondary author
No secondary author expected.
VRFVerificationOfBlockFailed(AuthorityId, u128)
VRF verification of block by author failed
VRF verification failed
FetchParentHeader(Error)
Could not fetch parent header
Expected epoch change to happen.
Unexpected config change.
Unexpected epoch change
ParentBlockNoAssociatedWeight(B::Hash)
Parent block has no associated weight
CheckInherents(Error)
Check inherents error
CheckInherentsUnhandled(InherentIdentifier)
Unhandled check inherents error
CreateInherents(Error)
Create inherents error.
Client(Error)
Client error
RuntimeApi(ApiError)
Runtime Api error.
Fork tree error
Trait Implementations
Auto Trait Implementations
impl<B> !RefUnwindSafe for Error<B>
impl<B> !UnwindSafe for Error<B>
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,