Enum spl_token::error::TokenError [−][src]
pub enum TokenError { NotRentExempt, InsufficientFunds, InvalidMint, MintMismatch, OwnerMismatch, FixedSupply, AlreadyInUse, InvalidNumberOfProvidedSigners, InvalidNumberOfRequiredSigners, UninitializedState, NativeNotSupported, NonNativeHasBalance, InvalidInstruction, InvalidState, Overflow, AuthorityTypeNotSupported, MintCannotFreeze, AccountFrozen, MintDecimalsMismatch, }
Errors that may be returned by the Token program.
Variants
Lamport balance below rent-exempt threshold.
Insufficient funds for the operation requested.
Invalid Mint.
Account not associated with this Mint.
Owner does not match.
This token’s supply is fixed and new tokens cannot be minted.
The account cannot be initialized because it is already being used.
Invalid number of provided signers.
Invalid number of required signers.
State is uninitialized.
Instruction does not support native tokens
Non-native account can only be closed if its balance is zero
Invalid instruction
State is invalid for requested operation.
Operation overflowed
Account does not support specified authority type.
This token mint cannot freeze accounts.
Account is frozen; all account operations will fail
Mint decimals mismatch between the client and mint
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 PrintProgramError for TokenError
[src][+]
impl StructuralEq for TokenError
[src]
impl StructuralPartialEq for TokenError
[src]
Auto Trait Implementations
impl RefUnwindSafe for TokenError
impl Send for TokenError
impl Sync for TokenError
impl Unpin for TokenError
impl UnwindSafe for TokenError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,