pub enum SolutionVerifyError {
InvalidPieceOffset {
piece_offset: u16,
max_pieces_in_sector: u16,
},
FutureHistorySize {
current: HistorySize,
solution: HistorySize,
},
SectorExpired {
expiration_history_size: HistorySize,
current_history_size: HistorySize,
},
InvalidPiece,
OutsideSolutionRange {
solution_range: SolutionRange,
solution_distance: SolutionDistance,
},
InvalidProofOfSpace,
InvalidChunkProof,
InvalidHistorySize,
}Expand description
Solution verification errors
Variants§
InvalidPieceOffset
Invalid piece offset
Fields
FutureHistorySize
History size is in the future
Fields
§
current: HistorySizeCurrent history size
§
solution: HistorySizeHistory size solution was created for
SectorExpired
Sector expired
Fields
§
expiration_history_size: HistorySizeExpiration history size
§
current_history_size: HistorySizeCurrent history size
InvalidPiece
Piece verification failed
OutsideSolutionRange
Solution is outside the solution range
Fields
§
solution_range: SolutionRangeSolution range
§
solution_distance: SolutionDistanceSolution distance
InvalidProofOfSpace
Invalid proof of space
InvalidChunkProof
Invalid chunk proof
InvalidHistorySize
Invalid history size
Trait Implementations§
Source§impl Debug for SolutionVerifyError
impl Debug for SolutionVerifyError
Source§impl Display for SolutionVerifyError
impl Display for SolutionVerifyError
Source§impl Error for SolutionVerifyError
impl Error for SolutionVerifyError
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 PartialEq for SolutionVerifyError
impl PartialEq for SolutionVerifyError
impl Eq for SolutionVerifyError
impl StructuralPartialEq for SolutionVerifyError
Auto Trait Implementations§
impl Freeze for SolutionVerifyError
impl RefUnwindSafe for SolutionVerifyError
impl Send for SolutionVerifyError
impl Sync for SolutionVerifyError
impl Unpin for SolutionVerifyError
impl UnwindSafe for SolutionVerifyError
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> 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