pub enum SolutionVerifyError {
InvalidPieceOffset {
piece_offset: u16,
max_pieces_in_sector: u16,
},
SectorExpired {
expiration_history_size: HistorySize,
current_history_size: HistorySize,
},
InvalidPiece,
OutsideSolutionRange {
solution_range: SolutionRange,
solution_distance: SolutionDistance,
},
InvalidProofOfSpace,
InvalidAuditChunkOffset,
InvalidChunkProof,
InvalidHistorySize,
}
Expand description
Solution verification errors
Variants§
InvalidPieceOffset
Invalid piece offset
Fields
SectorExpired
Sector expired
Fields
§
expiration_history_size: HistorySize
Expiration history size
§
current_history_size: HistorySize
Current history size
InvalidPiece
Piece verification failed
OutsideSolutionRange
Solution is outside the solution range
Fields
§
solution_range: SolutionRange
Solution range
§
solution_distance: SolutionDistance
Solution distance
InvalidProofOfSpace
Invalid proof of space
InvalidAuditChunkOffset
Invalid audit chunk offset
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