pub enum ZkeyError {
ZkeyFingerprintMismatch(String),
GraphFingerprintMismatch(String),
ZkeyInvalid(Report),
GraphInvalid(Report),
IoError(Error),
}Expand description
Errors that can occur while loading or parsing a .zkey or graph file.
Variants§
ZkeyFingerprintMismatch(String)
The SHA-256 fingerprint of the .zkey did not match the expected value.
GraphFingerprintMismatch(String)
The SHA-256 fingerprint of the witness graph did not match the expected value.
ZkeyInvalid(Report)
Could not parse the .zkey file.
GraphInvalid(Report)
Could not parse the graph file.
IoError(Error)
Any I/O error encountered while reading the .zkey or graph file
Trait Implementations§
Source§impl Error for ZkeyError
impl Error for ZkeyError
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 From<SerializationError> for ZkeyError
impl From<SerializationError> for ZkeyError
Source§fn from(value: SerializationError) -> ZkeyError
fn from(value: SerializationError) -> ZkeyError
Converts to this type from the input type.
Source§impl From<ZkeyParserError> for ZkeyError
impl From<ZkeyParserError> for ZkeyError
Source§fn from(value: ZkeyParserError) -> ZkeyError
fn from(value: ZkeyParserError) -> ZkeyError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ZkeyError
impl !RefUnwindSafe for ZkeyError
impl Send for ZkeyError
impl Sync for ZkeyError
impl Unpin for ZkeyError
impl UnsafeUnpin for ZkeyError
impl !UnwindSafe for ZkeyError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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