Enum saver::error::SaverError
source · pub enum SaverError {
Show 15 variants
UnexpectedBase(u8),
InvalidDecomposition,
LegoGroth16Error(Error),
SynthesisError(SynthesisError),
VectorShorterThanExpected(usize, usize),
MalformedEncryptionKey(usize, usize),
MalformedDecryptionKey(usize, usize),
IncompatibleEncryptionKey(usize, usize),
IncompatibleDecryptionKey(usize, usize),
InvalidProof,
InvalidCommitment,
InvalidDecryption,
CouldNotFindDiscreteLog,
InvalidPairingPowers,
PairingCheckFailed,
}Variants§
UnexpectedBase(u8)
InvalidDecomposition
LegoGroth16Error(Error)
SynthesisError(SynthesisError)
VectorShorterThanExpected(usize, usize)
MalformedEncryptionKey(usize, usize)
MalformedDecryptionKey(usize, usize)
IncompatibleEncryptionKey(usize, usize)
IncompatibleDecryptionKey(usize, usize)
InvalidProof
InvalidCommitment
InvalidDecryption
CouldNotFindDiscreteLog
InvalidPairingPowers
PairingCheckFailed
Trait Implementations§
source§impl Clone for SaverError
impl Clone for SaverError
source§fn clone(&self) -> SaverError
fn clone(&self) -> SaverError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SaverError
impl Debug for SaverError
source§impl From<Error> for SaverError
impl From<Error> for SaverError
source§fn from(e: LegoGroth16Error) -> Self
fn from(e: LegoGroth16Error) -> Self
Converts to this type from the input type.
source§impl From<SynthesisError> for SaverError
impl From<SynthesisError> for SaverError
source§fn from(e: SynthesisError) -> Self
fn from(e: SynthesisError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SaverError
impl RefUnwindSafe for SaverError
impl Send for SaverError
impl Sync for SaverError
impl Unpin for SaverError
impl UnwindSafe for SaverError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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