pub enum PoSWError {
AnyhowError(Error),
BlockError(BlockError),
ConstraintFieldError(ConstraintFieldError),
Crate(&'static str, String),
Message(String),
Parameters(ParameterError),
SNARKError(SNARKError),
}
Expand description
An error when generating/verifying a Proof of Succinct Work
Variants
AnyhowError(Error)
BlockError(BlockError)
ConstraintFieldError(ConstraintFieldError)
Thrown if the mask conversion to a field element fails
Crate(&'static str, String)
Message(String)
Parameters(ParameterError)
Thrown when the parameters cannot be loaded
SNARKError(SNARKError)
Thrown when there’s an internal error in the underlying SNARK
Trait Implementations
sourceimpl Error for PoSWError
impl Error for PoSWError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<BlockError> for PoSWError
impl From<BlockError> for PoSWError
sourcefn from(source: BlockError) -> Self
fn from(source: BlockError) -> Self
Performs the conversion.
sourceimpl From<ConstraintFieldError> for PoSWError
impl From<ConstraintFieldError> for PoSWError
sourcefn from(source: ConstraintFieldError) -> Self
fn from(source: ConstraintFieldError) -> Self
Performs the conversion.
sourceimpl From<ParameterError> for PoSWError
impl From<ParameterError> for PoSWError
sourcefn from(source: ParameterError) -> Self
fn from(source: ParameterError) -> Self
Performs the conversion.
sourceimpl From<SNARKError> for PoSWError
impl From<SNARKError> for PoSWError
sourcefn from(source: SNARKError) -> Self
fn from(source: SNARKError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for PoSWError
impl Send for PoSWError
impl Sync for PoSWError
impl Unpin for PoSWError
impl !UnwindSafe for PoSWError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more