Enum cryptoballot::ValidationError[][src]

pub enum ValidationError {
Show variants IdentifierBadComposition, AuthorityPublicKeyMismatch, TrusteePublicKeyMismatch(u8), MismatchedEncryptionKey(u8), InvalidTrusteeThreshold, InvalidAuthThreshold, InvalidPublicKey, ElectionMismatch, BallotDoesNotExist, AuthDoesNotExist, TrusteeDoesNotExist(u8), MissingKeyGenPublicKeyTransaction(u8), WrongNumberOfPublicKeyTransactions, TrusteeShareMissing(u8), TrusteeMissing(u8), WrongNumberOfShares, AuthFailed, EncryptionKeyTransactionDoesNotExist, SecretRecoveryFailed, VoteDecryptionFailed(CryptoError), VoteDecryptionMismatch, AuthSignatureVerificationFailed, NotEnoughShares(usizeusize), TransactionNotFound(TransactionNotFound), MisingVotingEndTransaction, SignatureError(SignatureError), ShareDecryptionError, PartialDecryptionProofFailed, MismatchedTransactionType, VotingHasEnded, ShuffleVerificationFailed, NoMixnetConfig, OutOfOrderMix, MissingPrevMixTransaction, InvalidPrevMixTransaction, MixVoteIdsNotSorted, MixWrongNumberOfVotes, MixVotesNotAccountedFor, InvalidUpstreamID, InvalidUpstreamIndex, InvalidUpstreamContestIndex, WrongMixSelected,
}
Expand description

Transaction Validation errors

Variants

IdentifierBadComposition
AuthorityPublicKeyMismatch
TrusteePublicKeyMismatch(u8)
MismatchedEncryptionKey(u8)
InvalidTrusteeThreshold
InvalidAuthThreshold
InvalidPublicKey
ElectionMismatch
BallotDoesNotExist
AuthDoesNotExist
TrusteeDoesNotExist(u8)
MissingKeyGenPublicKeyTransaction(u8)
WrongNumberOfPublicKeyTransactions
TrusteeShareMissing(u8)
TrusteeMissing(u8)
WrongNumberOfShares
AuthFailed
EncryptionKeyTransactionDoesNotExist
SecretRecoveryFailed
VoteDecryptionFailed(CryptoError)
VoteDecryptionMismatch
AuthSignatureVerificationFailed
NotEnoughShares(usizeusize)
TransactionNotFound(TransactionNotFound)
MisingVotingEndTransaction
SignatureError(SignatureError)
ShareDecryptionError
PartialDecryptionProofFailed
MismatchedTransactionType
VotingHasEnded
ShuffleVerificationFailed
NoMixnetConfig
OutOfOrderMix
MissingPrevMixTransaction
InvalidPrevMixTransaction
MixVoteIdsNotSorted
MixWrongNumberOfVotes
MixVotesNotAccountedFor
InvalidUpstreamID
InvalidUpstreamIndex
InvalidUpstreamContestIndex
WrongMixSelected

Trait Implementations

impl Debug for ValidationError[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Display for ValidationError[src]

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Error for ValidationError[src]

fn source(&self) -> Option<&(dyn Error + 'static)>[src]

The lower-level source of this error, if any. Read more

fn backtrace(&self) -> Option<&Backtrace>[src]

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

fn description(&self) -> &str1.0.0[src]

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

fn cause(&self) -> Option<&dyn Error>1.0.0[src]

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

impl From<Error> for ValidationError[src]

fn from(source: SignatureError) -> Self[src]

Performs the conversion.

impl From<TransactionNotFound> for ValidationError[src]

fn from(source: TransactionNotFound) -> Self[src]

Performs the conversion.

impl From<ValidationError> for Error[src]

fn from(source: ValidationError) -> Self[src]

Performs the conversion.

Auto Trait Implementations

impl !RefUnwindSafe for ValidationError

impl Send for ValidationError

impl Sync for ValidationError

impl Unpin for ValidationError

impl !UnwindSafe for ValidationError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> AsFail for T where
    T: Fail
[src]

pub fn as_fail(&self) -> &(dyn Fail + 'static)[src]

Converts a reference to Self into a dynamic trait object of Fail.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

fn name(&self) -> Option<&str>[src]

Returns the “name” of the error. Read more

fn cause(&self) -> Option<&(dyn Fail + 'static)>[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

fn backtrace(&self) -> Option<&Backtrace>[src]

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

fn context<D>(self, context: D) -> Context<D> where
    D: Display + Send + Sync + 'static, 
[src]

Provides context for this failure. Read more

fn compat(self) -> Compat<Self>[src]

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T[src]

pub const ALIGN: usize[src]

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize[src]

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T[src]

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T[src]

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)[src]

Drops the object pointed to by the given pointer. Read more

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

pub fn vzip(self) -> V[src]