pub enum Error<Header: HeaderT> {
Show 34 variants
InnerBlockImportError(Error),
DigestItemError(Error),
ParentUnavailable(Header::Hash, Header::Hash),
GenesisUnavailable,
SlotMustIncrease(Slot, Slot),
HeaderBadSeal(Header::Hash),
HeaderUnsealed(Header::Hash),
BadRewardSignature(Header::Hash),
MissingSubspaceJustification,
InvalidSubspaceJustification(Error),
InvalidSubspaceJustificationContents,
InvalidProofOfTime,
OutsideOfSolutionRange {
slot: Slot,
half_solution_range: SolutionRange,
solution_distance: SolutionRange,
},
InvalidProofOfSpace,
InvalidAuditChunkOffset,
InvalidChunk(String),
InvalidChunkWitness,
InvalidPieceOffset {
slot: Slot,
piece_offset: u16,
max_pieces_in_sector: u16,
},
FutureHistorySize {
current: HistorySize,
solution: HistorySize,
},
InvalidPiece(Slot),
InvalidSolutionRange(Header::Hash),
InvalidSetOfSegmentHeaders,
SegmentHeadersExtrinsicNotFound(Vec<SegmentHeader>),
SegmentHeaderNotFound(SegmentIndex),
DifferentSegmentCommitment(SegmentIndex),
SegmentCommitmentNotFound(SegmentIndex),
SectorExpired {
expiration_history_size: HistorySize,
current_history_size: HistorySize,
},
InvalidHistorySize,
OnlyRootPlotPublicKeyAllowed,
CheckInherents(Error),
CheckInherentsUnhandled(InherentIdentifier),
CreateInherents(Error),
Client(Error),
RuntimeApi(ApiError),
}Expand description
Errors encountered by the Subspace authorship task.
Variants§
InnerBlockImportError(Error)
Inner block import error
DigestItemError(Error)
Error during digest item extraction
Parent unavailable. Cannot import
Genesis block unavailable. Cannot import
SlotMustIncrease(Slot, Slot)
Slot number must increase
HeaderBadSeal(Header::Hash)
Header has a bad seal
HeaderUnsealed(Header::Hash)
Header is unsealed
BadRewardSignature(Header::Hash)
Bad reward signature
MissingSubspaceJustification
Missing Subspace justification
InvalidSubspaceJustification(Error)
Invalid Subspace justification
InvalidSubspaceJustificationContents
Invalid Subspace justification contents
InvalidProofOfTime
Invalid proof of time
OutsideOfSolutionRange
Solution is outside of solution range
Fields
slot: SlotTime slot
half_solution_range: SolutionRangeHalf of solution range
solution_distance: SolutionRangeSolution distance
InvalidProofOfSpace
Invalid proof of space
InvalidAuditChunkOffset
Invalid audit chunk offset
InvalidChunk(String)
Invalid chunk
InvalidChunkWitness
Invalid chunk witness
InvalidPieceOffset
Piece verification failed
Fields
slot: SlotTime slot
FutureHistorySize
History size is in the future
Fields
current: HistorySizeCurrent history size
solution: HistorySizeHistory size solution was created for
InvalidPiece(Slot)
Piece verification failed
InvalidSolutionRange(Header::Hash)
Block has invalid associated solution range
InvalidSetOfSegmentHeaders
Invalid set of segment headers
SegmentHeadersExtrinsicNotFound(Vec<SegmentHeader>)
Stored segment header extrinsic was not found
SegmentHeaderNotFound(SegmentIndex)
Segment header not found
DifferentSegmentCommitment(SegmentIndex)
Different segment commitment found
SegmentCommitmentNotFound(SegmentIndex)
Segment commitment not found
SectorExpired
Sector expired
Fields
expiration_history_size: HistorySizeExpiration history size
current_history_size: HistorySizeCurrent history size
InvalidHistorySize
Invalid history size
OnlyRootPlotPublicKeyAllowed
Only root plot public key is allowed
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.
Trait Implementations§
Source§impl<Header: HeaderT> Error for Error<Header>
impl<Header: HeaderT> Error for Error<Header>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl<Header> From<VerificationError<Header>> for Error<Header>where
Header: HeaderT,
impl<Header> From<VerificationError<Header>> for Error<Header>where
Header: HeaderT,
Source§fn from(error: VerificationError<Header>) -> Self
fn from(error: VerificationError<Header>) -> Self
Auto Trait Implementations§
impl<Header> Freeze for Error<Header>where
<Header as Header>::Hash: Freeze,
impl<Header> !RefUnwindSafe for Error<Header>
impl<Header> Send for Error<Header>
impl<Header> Sync for Error<Header>
impl<Header> Unpin for Error<Header>where
<Header as Header>::Hash: Unpin,
impl<Header> !UnwindSafe for Error<Header>
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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§impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T. Read more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T.