pub enum TunaStakingError {
Show 19 variants
InvalidInstructionArguments = 6_000,
RemainingAccountsInsufficient = 6_001,
MathOverflow = 6_002,
MathUnderflow = 6_003,
TypeCastOverflow = 6_004,
TransferFeeCalculationError = 6_005,
UnsupportedTokenMint = 6_006,
WithdrawRequestExceedsUserBalance = 6_007,
CooldownNotExpired = 6_008,
NothingToStake = 6_009,
NothingToCompound = 6_010,
NothingToDeposit = 6_011,
NothingToWithdraw = 6_012,
NothingToSwap = 6_013,
NothingStaked = 6_014,
StakedTokensLocked = 6_015,
StakingDisabled = 6_016,
UnstakingDisabled = 6_017,
WithdrawDisabled = 6_018,
}Variants§
InvalidInstructionArguments = 6_000
6000 - Invalid instruction arguments
RemainingAccountsInsufficient = 6_001
6001 - Insufficient remaining accounts
MathOverflow = 6_002
6002 - Math overflow
MathUnderflow = 6_003
6003 - Math underflow
TypeCastOverflow = 6_004
6004 - Type cast overflow
TransferFeeCalculationError = 6_005
6005 - Transfer fee calculation failed
UnsupportedTokenMint = 6_006
6006 - Token mint has unsupported attributes
WithdrawRequestExceedsUserBalance = 6_007
6007 - Withdraw request exceeds user balance
CooldownNotExpired = 6_008
6008 - Tokens can’t be unstaked because the cooldown has not expired
NothingToStake = 6_009
6009 - Nothing to stake
NothingToCompound = 6_010
6010 - Nothing to compound
NothingToDeposit = 6_011
6011 - Nothing to deposit
NothingToWithdraw = 6_012
6012 - Nothing to withdraw
NothingToSwap = 6_013
6013 - Nothing to swap
NothingStaked = 6_014
6014 - Nothing staked
StakedTokensLocked = 6_015
6015 - Staked token are locked
StakingDisabled = 6_016
6016 - Staking is disabled
UnstakingDisabled = 6_017
6017 - Unstaking is disabled
WithdrawDisabled = 6_018
6018 - Withdraw is disabled
Trait Implementations§
Source§impl Clone for TunaStakingError
impl Clone for TunaStakingError
Source§fn clone(&self) -> TunaStakingError
fn clone(&self) -> TunaStakingError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TunaStakingError
impl Debug for TunaStakingError
Source§impl<T> DecodeError<T> for TunaStakingError
impl<T> DecodeError<T> for TunaStakingError
Source§fn decode_custom_error_to_enum(custom: u32) -> Option<E>where
E: FromPrimitive,
fn decode_custom_error_to_enum(custom: u32) -> Option<E>where
E: FromPrimitive,
👎Deprecated since 2.3.0: Use
num_traits::FromPrimitive insteadSource§impl Display for TunaStakingError
impl Display for TunaStakingError
Source§impl Error for TunaStakingError
impl Error for TunaStakingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl FromPrimitive for TunaStakingError
impl FromPrimitive for TunaStakingError
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
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 moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
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 moreSource§impl PartialEq for TunaStakingError
impl PartialEq for TunaStakingError
Source§impl PrintProgramError for TunaStakingError
impl PrintProgramError for TunaStakingError
impl Eq for TunaStakingError
impl StructuralPartialEq for TunaStakingError
Auto Trait Implementations§
impl Freeze for TunaStakingError
impl RefUnwindSafe for TunaStakingError
impl Send for TunaStakingError
impl Sync for TunaStakingError
impl Unpin for TunaStakingError
impl UnwindSafe for TunaStakingError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.