Enum spl_stake_pool::error::StakePoolError [−][src]
pub enum StakePoolError {}Show variants
AlreadyInUse, InvalidProgramAddress, InvalidState, CalculationFailure, FeeTooHigh, WrongAccountMint, WrongManager, SignatureMissing, InvalidValidatorStakeList, InvalidFeeAccount, WrongPoolMint, WrongStakeState, UserStakeNotActive, ValidatorAlreadyAdded, ValidatorNotFound, InvalidStakeAccountAddress, StakeListOutOfDate, StakeListAndPoolOutOfDate, UnknownValidatorStakeAccount, WrongMintingAuthority, UnexpectedValidatorListAccountSize, WrongStaker, NonZeroPoolTokenSupply, StakeLamportsNotEqualToMinimum,
Errors that may be returned by the StakePool program.
Variants
The account cannot be initialized because it is already being used.
The program address provided doesn’t match the value generated by the program.
The stake pool state is invalid.
The calculation failed.
Stake pool fee > 1.
Token account is associated with the wrong mint.
Wrong pool manager account.
Required signature is missing.
Invalid validator stake list account.
Invalid manager fee account.
Specified pool mint account is wrong.
Stake account is not in the state expected by the program.
User stake is not active
Stake account voting for this validator already exists in the pool.
Stake account for this validator not found in the pool.
Stake account address not properly derived from the validator address.
Identify validator stake accounts with old balances and update them.
First update old validator stake account balances and then pool stake balance.
Validator stake account is not found in the list storage.
Wrong minting authority set for mint pool account
The size of the given validator stake list does match the expected amount
Wrong pool staker account.
Pool token supply is not zero on initialization
The lamports in the validator stake account is not equal to the minimum
Trait Implementations
impl Clone for StakePoolError
[src]
impl Clone for StakePoolError
[src]fn clone(&self) -> StakePoolError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> DecodeError<T> for StakePoolError
[src]
impl<T> DecodeError<T> for StakePoolError
[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 Eq for StakePoolError
[src]
impl Eq for StakePoolError
[src]impl Error for StakePoolError
[src]
impl Error for StakePoolError
[src]impl FromPrimitive for StakePoolError
[src]
impl FromPrimitive for StakePoolError
[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<StakePoolError> for StakePoolError
[src]
impl PartialEq<StakePoolError> for StakePoolError
[src]impl PrintProgramError for StakePoolError
[src]
impl PrintProgramError for StakePoolError
[src]fn print<E>(&self) where
E: 'static + Error + DecodeError<E> + PrintProgramError + FromPrimitive,
[src]
E: 'static + Error + DecodeError<E> + PrintProgramError + FromPrimitive,
impl StructuralEq for StakePoolError
[src]
impl StructuralEq for StakePoolError
[src]impl StructuralPartialEq for StakePoolError
[src]
impl StructuralPartialEq for StakePoolError
[src]Auto Trait Implementations
impl RefUnwindSafe for StakePoolError
impl RefUnwindSafe for StakePoolError
impl Send for StakePoolError
impl Send for StakePoolError
impl Sync for StakePoolError
impl Sync for StakePoolError
impl Unpin for StakePoolError
impl Unpin for StakePoolError
impl UnwindSafe for StakePoolError
impl UnwindSafe for StakePoolError
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,