Enum serum_dex::error::DexErrorCode
source · [−]#[repr(u32)]
pub enum DexErrorCode {
Show 65 variants
InvalidMarketFlags,
InvalidAskFlags,
InvalidBidFlags,
InvalidQueueLength,
OwnerAccountNotProvided,
ConsumeEventsQueueFailure,
WrongCoinVault,
WrongPcVault,
WrongCoinMint,
WrongPcMint,
CoinVaultProgramId,
PcVaultProgramId,
CoinMintProgramId,
PcMintProgramId,
WrongCoinMintSize,
WrongPcMintSize,
WrongCoinVaultSize,
WrongPcVaultSize,
UninitializedVault,
UninitializedMint,
CoinMintUninitialized,
PcMintUninitialized,
WrongMint,
WrongVaultOwner,
VaultHasDelegate,
AlreadyInitialized,
WrongAccountDataAlignment,
WrongAccountDataPaddingLength,
WrongAccountHeadPadding,
WrongAccountTailPadding,
RequestQueueEmpty,
EventQueueTooSmall,
SlabTooSmall,
BadVaultSignerNonce,
InsufficientFunds,
SplAccountProgramId,
SplAccountLen,
WrongFeeDiscountAccountOwner,
WrongFeeDiscountMint,
CoinPayerProgramId,
PcPayerProgramId,
ClientIdNotFound,
TooManyOpenOrders,
FakeErrorSoWeDontChangeNumbers,
BorrowError,
WrongOrdersAccount,
WrongBidsAccount,
WrongAsksAccount,
WrongRequestQueueAccount,
WrongEventQueueAccount,
RequestQueueFull,
EventQueueFull,
MarketIsDisabled,
WrongSigner,
TransferFailed,
ClientOrderIdIsZero,
WrongRentSysvarAccount,
RentNotProvided,
OrdersNotRentExempt,
OrderNotFound,
OrderNotYours,
WouldSelfTrade,
InvalidOpenOrdersAuthority,
Unknown,
AssertionError,
}
Variants
InvalidMarketFlags
InvalidAskFlags
InvalidBidFlags
InvalidQueueLength
OwnerAccountNotProvided
ConsumeEventsQueueFailure
WrongCoinVault
WrongPcVault
WrongCoinMint
WrongPcMint
CoinVaultProgramId
PcVaultProgramId
CoinMintProgramId
PcMintProgramId
WrongCoinMintSize
WrongPcMintSize
WrongCoinVaultSize
WrongPcVaultSize
UninitializedVault
UninitializedMint
CoinMintUninitialized
PcMintUninitialized
WrongMint
WrongVaultOwner
VaultHasDelegate
AlreadyInitialized
WrongAccountDataAlignment
WrongAccountDataPaddingLength
WrongAccountHeadPadding
WrongAccountTailPadding
RequestQueueEmpty
EventQueueTooSmall
SlabTooSmall
BadVaultSignerNonce
InsufficientFunds
SplAccountProgramId
SplAccountLen
WrongFeeDiscountAccountOwner
WrongFeeDiscountMint
CoinPayerProgramId
PcPayerProgramId
ClientIdNotFound
TooManyOpenOrders
FakeErrorSoWeDontChangeNumbers
BorrowError
WrongOrdersAccount
WrongBidsAccount
WrongAsksAccount
WrongRequestQueueAccount
WrongEventQueueAccount
RequestQueueFull
EventQueueFull
MarketIsDisabled
WrongSigner
TransferFailed
ClientOrderIdIsZero
WrongRentSysvarAccount
RentNotProvided
OrdersNotRentExempt
OrderNotFound
OrderNotYours
WouldSelfTrade
InvalidOpenOrdersAuthority
Unknown
AssertionError
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DexErrorCode
impl Send for DexErrorCode
impl Sync for DexErrorCode
impl Unpin for DexErrorCode
impl UnwindSafe for DexErrorCode
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more