pub enum VerifyPuzzleResultError {
Show 13 variants
SignatureKeyInvalid(InvalidLength),
SignatureMismatch(MacError),
PuzzleReuse,
PuzzleExpired,
DuplicateSolution,
SolutionBelowThreshold,
DataAccess,
Conversion,
DecodeHex(FromHexError),
DecodeBas64(DecodeError),
TimeError,
InputMalformed,
Unknown,
}Expand description
Describes an error that occurred during verifying a puzzle result.
Variants§
SignatureKeyInvalid(InvalidLength)
Signature key invalid.
SignatureMismatch(MacError)
Signatures do not match.
PuzzleReuse
Puzzle is reused.
PuzzleExpired
Puzzle is expired.
DuplicateSolution
Duplicate Solution.
SolutionBelowThreshold
Solution below threshold.
DataAccess
Data access failed.
Conversion
Data conversion failed.
DecodeHex(FromHexError)
Decoding hex failed.
DecodeBas64(DecodeError)
Decoding base64 failed.
TimeError
Failed to get the time.
InputMalformed
Input malformed
Unknown
Unknown error.
Trait Implementations§
source§impl Debug for VerifyPuzzleResultError
impl Debug for VerifyPuzzleResultError
source§impl Display for VerifyPuzzleResultError
impl Display for VerifyPuzzleResultError
source§impl Error for VerifyPuzzleResultError
impl Error for VerifyPuzzleResultError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DecodeError> for VerifyPuzzleResultError
impl From<DecodeError> for VerifyPuzzleResultError
source§impl From<FromHexError> for VerifyPuzzleResultError
impl From<FromHexError> for VerifyPuzzleResultError
source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<InvalidLength> for VerifyPuzzleResultError
impl From<InvalidLength> for VerifyPuzzleResultError
source§impl From<MacError> for VerifyPuzzleResultError
impl From<MacError> for VerifyPuzzleResultError
source§impl<T> From<PoisonError<T>> for VerifyPuzzleResultError
impl<T> From<PoisonError<T>> for VerifyPuzzleResultError
source§fn from(_err: PoisonError<T>) -> Self
fn from(_err: PoisonError<T>) -> Self
Converts to this type from the input type.
source§impl From<SystemTimeError> for VerifyPuzzleResultError
impl From<SystemTimeError> for VerifyPuzzleResultError
source§fn from(_err: SystemTimeError) -> Self
fn from(_err: SystemTimeError) -> Self
Converts to this type from the input type.
source§impl PartialEq<VerifyPuzzleResultError> for VerifyPuzzleResultError
impl PartialEq<VerifyPuzzleResultError> for VerifyPuzzleResultError
source§fn eq(&self, other: &VerifyPuzzleResultError) -> bool
fn eq(&self, other: &VerifyPuzzleResultError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for VerifyPuzzleResultError
Auto Trait Implementations§
impl RefUnwindSafe for VerifyPuzzleResultError
impl Send for VerifyPuzzleResultError
impl Sync for VerifyPuzzleResultError
impl Unpin for VerifyPuzzleResultError
impl UnwindSafe for VerifyPuzzleResultError
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