#[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 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 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)>
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 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
impl Copy for PhoenixError
impl Eq for PhoenixError
impl StructuralPartialEq for PhoenixError
Auto Trait Implementations§
impl Freeze for PhoenixError
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
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