[][src]Enum spl_token::error::TokenError

pub enum TokenError {
    InsufficientFunds,
    MintMismatch,
    OwnerMismatch,
    FixedSupply,
    AlreadyInUse,
    OwnerRequiredIfNoInitialSupply,
    InvalidNumberOfProvidedSigners,
    InvalidNumberOfRequiredSigners,
    UninitializedState,
    NativeNotSupported,
    NonNativeNotSupported,
    InvalidInstruction,
}

Errors that may be returned by the Token program.

Variants

InsufficientFunds

Insufficient funds for the operation requested.

MintMismatch

Account not associated with this Mint.

OwnerMismatch

Owner does not match.

FixedSupply

This token's supply is fixed and new tokens cannot be minted.

AlreadyInUse

The account cannot be initialized because it is already being used.

OwnerRequiredIfNoInitialSupply

An owner is required if initial supply is zero.

InvalidNumberOfProvidedSigners

Invalid number of provided signers.

InvalidNumberOfRequiredSigners

Invalid number of required signers.

UninitializedState

State is uninitialized.

NativeNotSupported

Instruction does not support native tokens

NonNativeNotSupported

Instruction does not support non-native tokens

InvalidInstruction

Invalid instruction

Trait Implementations

impl Clone for TokenError[src]

impl Debug for TokenError[src]

impl<T> DecodeError<T> for TokenError[src]

impl Display for TokenError[src]

impl Eq for TokenError[src]

impl Error for TokenError[src]

impl From<TokenError> for ProgramError[src]

impl FromPrimitive for TokenError[src]

impl PartialEq<TokenError> for TokenError[src]

impl StructuralEq for TokenError[src]

impl StructuralPartialEq for TokenError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

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.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,