#[repr(u32)]pub enum CommonError {
Show 28 variants
WrongReserveOwner = 0,
NonEmptyReserveData = 1,
InvalidInitialReserveLamports = 2,
ZeroValidatorChunkSize = 3,
TooBigValidatorChunkSize = 4,
ZeroCreditChunkSize = 5,
TooBigCreditChunkSize = 6,
TooLowCreditFee = 7,
InvalidMintAuthority = 8,
MintHasInitialSupply = 9,
InvalidOwnerFeeState = 10,
InvalidProgramId = 6_116,
UnexpectedAccount = 65_140,
CalculationFailure = 51_619,
AccountWithLockup = 45_694,
NumberTooLow = 7_892,
NumberTooHigh = 7_893,
FeeTooHigh = 4_052,
FeesWrongWayRound = 4_053,
LiquidityTargetTooLow = 4_054,
TicketNotDue = 4_055,
TicketNotReady = 4_056,
WrongBeneficiary = 4_057,
StakeAccountNotUpdatedYet = 4_058,
StakeNotDelegated = 4_059,
StakeAccountIsEmergencyUnstaking = 4_060,
InsufficientLiquidity = 4_205,
InvalidValidator = 47_525,
}Variants§
WrongReserveOwner = 0
NonEmptyReserveData = 1
InvalidInitialReserveLamports = 2
ZeroValidatorChunkSize = 3
TooBigValidatorChunkSize = 4
ZeroCreditChunkSize = 5
TooBigCreditChunkSize = 6
TooLowCreditFee = 7
InvalidMintAuthority = 8
MintHasInitialSupply = 9
InvalidOwnerFeeState = 10
InvalidProgramId = 6_116
UnexpectedAccount = 65_140
CalculationFailure = 51_619
AccountWithLockup = 45_694
NumberTooLow = 7_892
NumberTooHigh = 7_893
FeeTooHigh = 4_052
FeesWrongWayRound = 4_053
LiquidityTargetTooLow = 4_054
TicketNotDue = 4_055
TicketNotReady = 4_056
WrongBeneficiary = 4_057
StakeAccountNotUpdatedYet = 4_058
StakeNotDelegated = 4_059
StakeAccountIsEmergencyUnstaking = 4_060
InsufficientLiquidity = 4_205
InvalidValidator = 47_525
Trait Implementations§
Source§impl Clone for CommonError
impl Clone for CommonError
Source§fn clone(&self) -> CommonError
fn clone(&self) -> CommonError
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 CommonError
impl Debug for CommonError
Source§impl From<CommonError> for ProgramError
impl From<CommonError> for ProgramError
Source§fn from(e: CommonError) -> Self
fn from(e: CommonError) -> Self
Converts to this type from the input type.
impl Copy for CommonError
Auto Trait Implementations§
impl Freeze for CommonError
impl RefUnwindSafe for CommonError
impl Send for CommonError
impl Sync for CommonError
impl Unpin for CommonError
impl UnwindSafe for CommonError
Blanket Implementations§
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<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 more