#[non_exhaustive]pub enum QuadraticVotingError {
Variant {
index: usize,
error: VerificationError,
},
CreditRange(VerificationError),
CreditEquivalence(VerificationError),
OptionsLenMismatch {
expected: usize,
actual: usize,
},
}
Expand description
Errors that can occur when verifying QuadraticVotingBallot
s.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Variant
Error verifying a RangeProof
for a vote for a particular option.
Fields
§
error: VerificationError
Error that occurred during range proof verification.
CreditRange(VerificationError)
Error verifying a RangeProof
for credits.
CreditEquivalence(VerificationError)
Error verifying the proof of equivalence for credits.
OptionsLenMismatch
Mismatch between expected and actual number of options in the ballot.
Trait Implementations§
Source§impl Debug for QuadraticVotingError
impl Debug for QuadraticVotingError
Source§impl Display for QuadraticVotingError
impl Display for QuadraticVotingError
Source§impl Error for QuadraticVotingError
impl Error for QuadraticVotingError
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()
Auto Trait Implementations§
impl Freeze for QuadraticVotingError
impl RefUnwindSafe for QuadraticVotingError
impl Send for QuadraticVotingError
impl Sync for QuadraticVotingError
impl Unpin for QuadraticVotingError
impl UnwindSafe for QuadraticVotingError
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