Enum spl_token::error::TokenError [−][src]
pub enum TokenError {}Show variants
NotRentExempt, InsufficientFunds, InvalidMint, MintMismatch, OwnerMismatch, FixedSupply, AlreadyInUse, InvalidNumberOfProvidedSigners, InvalidNumberOfRequiredSigners, UninitializedState, NativeNotSupported, NonNativeHasBalance, InvalidInstruction, InvalidState, Overflow, AuthorityTypeNotSupported, MintCannotFreeze, AccountFrozen, MintDecimalsMismatch,
Expand description
Errors that may be returned by the Token program.
Variants
Expand description
Lamport balance below rent-exempt threshold.
Expand description
Insufficient funds for the operation requested.
Expand description
Invalid Mint.
Expand description
Account not associated with this Mint.
Expand description
Owner does not match.
Expand description
This token’s supply is fixed and new tokens cannot be minted.
Expand description
The account cannot be initialized because it is already being used.
Expand description
Invalid number of provided signers.
Expand description
Invalid number of required signers.
Expand description
State is uninitialized.
Expand description
Instruction does not support native tokens
Expand description
Non-native account can only be closed if its balance is zero
Expand description
Invalid instruction
Expand description
State is invalid for requested operation.
Expand description
Operation overflowed
Expand description
Account does not support specified authority type.
Expand description
This token mint cannot freeze accounts.
Expand description
Account is frozen; all account operations will fail
Expand description
Mint decimals mismatch between the client and mint
Trait Implementations
impl Clone for TokenError
[src]
impl Clone for TokenError
[src]fn clone(&self) -> TokenError
[src]
fn clone(&self) -> TokenError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TokenError
[src]
impl Debug for TokenError
[src]impl<T> DecodeError<T> for TokenError
[src]
impl<T> DecodeError<T> for TokenError
[src]fn type_of() -> &'static str
[src]
fn decode_custom_error_to_enum(custom: u32) -> Option<E> where
E: FromPrimitive,
[src]
E: FromPrimitive,
impl Display for TokenError
[src]
impl Display for TokenError
[src]impl Error for TokenError
[src]
impl Error for TokenError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl FromPrimitive for TokenError
[src]
impl FromPrimitive for TokenError
[src]fn from_i64(n: i64) -> Option<Self>
[src]
fn from_i64(n: i64) -> Option<Self>
[src]Converts an i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_u64(n: u64) -> Option<Self>
[src]
fn from_u64(n: u64) -> Option<Self>
[src]Converts an u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_isize(n: isize) -> Option<Self>
[src]
fn from_isize(n: isize) -> Option<Self>
[src]Converts an isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_i8(n: i8) -> Option<Self>
[src]
fn from_i8(n: i8) -> Option<Self>
[src]Converts an i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_i16(n: i16) -> Option<Self>
[src]
fn from_i16(n: i16) -> Option<Self>
[src]Converts an i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_i32(n: i32) -> Option<Self>
[src]
fn from_i32(n: i32) -> Option<Self>
[src]Converts an i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_i128(n: i128) -> Option<Self>
[src]
fn from_i128(n: i128) -> Option<Self>
[src]Converts an i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_usize(n: usize) -> Option<Self>
[src]
fn from_usize(n: usize) -> Option<Self>
[src]Converts a usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_u8(n: u8) -> Option<Self>
[src]
fn from_u8(n: u8) -> Option<Self>
[src]Converts an u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_u16(n: u16) -> Option<Self>
[src]
fn from_u16(n: u16) -> Option<Self>
[src]Converts an u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_u32(n: u32) -> Option<Self>
[src]
fn from_u32(n: u32) -> Option<Self>
[src]Converts an u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_u128(n: u128) -> Option<Self>
[src]
fn from_u128(n: u128) -> Option<Self>
[src]Converts an u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
impl PartialEq<TokenError> for TokenError
[src]
impl PartialEq<TokenError> for TokenError
[src]impl PrintProgramError for TokenError
[src]
impl PrintProgramError for TokenError
[src]fn print<E>(&self) where
E: 'static + Error + DecodeError<E> + PrintProgramError + FromPrimitive,
[src]
E: 'static + Error + DecodeError<E> + PrintProgramError + FromPrimitive,
impl Eq 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> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,