[][src]Enum private_currency::transactions::Error

#[repr(u8)]
pub enum Error { WalletExists, UnregisteredSender, UnregisteredReceiver, IncorrectProof, OutdatedHistory, InvalidHistoryRef, UnknownTransfer, UnauthorizedAccept, }

Errors that can occur during transaction processing.

Variants

Wallet already exists.

Can occur in CreateWallet.

The sender of a transfer is not registered.

Can occur in Transfer.

The receiver of a transfer is not registered.

Can occur in Transfer.

The range proof for the sender’s sufficient account balance is incorrect.

Can occur in Transfer.

There has been another outgoing transfer since the referenced point in time.

Can occur in Transfer.

Transfer refers to wallet history length exceeding real one.

Can occur in Transfer.

An Accept transaction references an unknown transfer.

Can occur in Accept.

The author of an Accept transaction differs from the receiver of the referenced transfer.

Can occur in Accept.

Trait Implementations

impl Clone for Error
[src]

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl From<Error> for ExecutionError
[src]

impl Eq for Error
[src]

impl PartialEq<Error> for Error
[src]

This method tests for !=.

impl Display for Error
[src]

impl Debug for Error
[src]

impl Hash for Error
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Fail for Error
[src]

Provides context for this failure. Read more

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

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

impl<T> From for T
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

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

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

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> AsFail for T where
    T: Fail, 

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

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

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

Provides context for this failure. Read more

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

impl<T> Erased for T

impl<T> Erased for T

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Same for T

Should always be Self