Enum phoenix::program::error::PhoenixError
source · #[repr(u32)]pub enum PhoenixError {
Show 26 variants
InvalidMarketParameters = 0,
InvalidMarketAuthority = 1,
FailedToLoadMarketFromAccount = 2,
MarketAlreadyInitialized = 3,
MarketUninitialized = 4,
InvalidStateTransition = 5,
InvalidMarketSigner = 6,
InvalidLotSize = 7,
InvalidTickSize = 8,
InvalidMint = 9,
InvalidBaseVault = 10,
InvalidQuoteVault = 11,
InvalidBaseAccount = 12,
InvalidQuoteAccount = 13,
TooManyEvents = 14,
NewOrderError = 15,
ReduceOrderError = 16,
CancelMultipleOrdersError = 17,
WithdrawFundsError = 18,
RemoveEmptyOrdersError = 19,
TraderNotFound = 20,
InvalidSeatStatus = 21,
EvictionError = 22,
NonEmptyScratchBuffer = 23,
FailedToSerializeEvent = 24,
FailedToFlushBuffer = 25,
}Variants§
InvalidMarketParameters = 0
InvalidMarketAuthority = 1
FailedToLoadMarketFromAccount = 2
MarketAlreadyInitialized = 3
MarketUninitialized = 4
InvalidStateTransition = 5
InvalidMarketSigner = 6
InvalidLotSize = 7
InvalidTickSize = 8
InvalidMint = 9
InvalidBaseVault = 10
InvalidQuoteVault = 11
InvalidBaseAccount = 12
InvalidQuoteAccount = 13
TooManyEvents = 14
NewOrderError = 15
ReduceOrderError = 16
CancelMultipleOrdersError = 17
WithdrawFundsError = 18
RemoveEmptyOrdersError = 19
TraderNotFound = 20
InvalidSeatStatus = 21
EvictionError = 22
NonEmptyScratchBuffer = 23
FailedToSerializeEvent = 24
FailedToFlushBuffer = 25
Trait Implementations§
source§impl Clone for PhoenixError
impl Clone for PhoenixError
source§fn clone(&self) -> PhoenixError
fn clone(&self) -> PhoenixError
Returns a copy 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 PhoenixError
impl Debug for PhoenixError
source§impl Display for PhoenixError
impl Display for PhoenixError
source§impl Error for PhoenixError
impl Error for PhoenixError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<PhoenixError> for ProgramError
impl From<PhoenixError> for ProgramError
source§fn from(e: PhoenixError) -> Self
fn from(e: PhoenixError) -> Self
Converts to this type from the input type.
source§impl From<PhoenixError> for u32
impl From<PhoenixError> for u32
source§fn from(enum_value: PhoenixError) -> Self
fn from(enum_value: PhoenixError) -> Self
Converts to this type from the input type.
source§impl PartialEq for PhoenixError
impl PartialEq for PhoenixError
source§fn eq(&self, other: &PhoenixError) -> bool
fn eq(&self, other: &PhoenixError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for PhoenixError
impl Eq for PhoenixError
impl StructuralEq for PhoenixError
impl StructuralPartialEq for PhoenixError
Auto Trait Implementations§
impl RefUnwindSafe for PhoenixError
impl Send for PhoenixError
impl Sync for PhoenixError
impl Unpin for PhoenixError
impl UnwindSafe for PhoenixError
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more