Enum chain_impl_mockchain::vote::TallyError
source · pub enum TallyError {
InvalidChoice {
options: Options,
choice: Choice,
},
InvalidPrivacy,
TallyAlreadyDecrypted,
NoEncryptedTally,
BadDecryptShares,
InvalidDecryption,
}
Variants§
Trait Implementations§
source§impl Clone for TallyError
impl Clone for TallyError
source§fn clone(&self) -> TallyError
fn clone(&self) -> TallyError
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 TallyError
impl Debug for TallyError
source§impl Display for TallyError
impl Display for TallyError
source§impl Error for TallyError
impl Error for TallyError
1.30.0 · 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<TallyError> for VoteError
impl From<TallyError> for VoteError
source§fn from(source: TallyError) -> Self
fn from(source: TallyError) -> Self
Converts to this type from the input type.
source§impl PartialEq<TallyError> for TallyError
impl PartialEq<TallyError> for TallyError
source§fn eq(&self, other: &TallyError) -> bool
fn eq(&self, other: &TallyError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TallyError
impl StructuralEq for TallyError
impl StructuralPartialEq for TallyError
Auto Trait Implementations§
impl RefUnwindSafe for TallyError
impl Send for TallyError
impl Sync for TallyError
impl Unpin for TallyError
impl UnwindSafe for TallyError
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