Enum spl_token::error::TokenError [−][src]
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]
fn clone(&self) -> TokenError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TokenError
[src]
impl<T> DecodeError<T> for TokenError
[src]
fn type_of() -> &'static str
[src]
pub fn decode_custom_error_to_enum(custom: u32) -> Option<E> where
E: FromPrimitive,
[src]
E: FromPrimitive,
impl Display for TokenError
[src]
impl Eq for TokenError
[src]
impl Error for TokenError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<TokenError> for ProgramError
[src]
fn from(e: TokenError) -> Self
[src]
impl FromPrimitive for TokenError
[src]
fn from_i64(n: i64) -> Option<Self>
[src]
fn from_u64(n: u64) -> Option<Self>
[src]
pub fn from_isize(n: isize) -> Option<Self>
[src]
pub fn from_i8(n: i8) -> Option<Self>
[src]
pub fn from_i16(n: i16) -> Option<Self>
[src]
pub fn from_i32(n: i32) -> Option<Self>
[src]
pub fn from_i128(n: i128) -> Option<Self>
[src]
pub fn from_usize(n: usize) -> Option<Self>
[src]
pub fn from_u8(n: u8) -> Option<Self>
[src]
pub fn from_u16(n: u16) -> Option<Self>
[src]
pub fn from_u32(n: u32) -> Option<Self>
[src]
pub fn from_u128(n: u128) -> Option<Self>
[src]
pub fn from_f32(n: f32) -> Option<Self>
[src]
pub fn from_f64(n: f64) -> Option<Self>
[src]
impl PartialEq<TokenError> for TokenError
[src]
fn eq(&self, other: &TokenError) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,