#[repr(u32)]pub enum PercolatorError {
Show 17 variants
InsufficientBalance = 0,
Undercollateralized = 1,
Unauthorized = 2,
InvalidMatchingEngine = 3,
PnlNotWarmedUp = 4,
Overflow = 5,
AccountNotFound = 6,
NotAnLPAccount = 7,
PositionSizeMismatch = 8,
AccountKindMismatch = 9,
SideBlocked = 10,
CorruptState = 11,
InvalidOraclePrice = 12,
AccountIndexOutOfRange = 13,
StaleOracle = 14,
InvalidOraclePriceValue = 15,
AmountOverflow = 16,
}Variants§
InsufficientBalance = 0
Undercollateralized = 1
InvalidMatchingEngine = 3
PnlNotWarmedUp = 4
Overflow = 5
AccountNotFound = 6
NotAnLPAccount = 7
PositionSizeMismatch = 8
AccountKindMismatch = 9
SideBlocked = 10
CorruptState = 11
InvalidOraclePrice = 12
AccountIndexOutOfRange = 13
StaleOracle = 14
InvalidOraclePriceValue = 15
AmountOverflow = 16
Implementations§
Trait Implementations§
Source§impl Clone for PercolatorError
impl Clone for PercolatorError
Source§fn clone(&self) -> PercolatorError
fn clone(&self) -> PercolatorError
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 PercolatorError
impl Debug for PercolatorError
Source§impl Display for PercolatorError
impl Display for PercolatorError
Source§impl From<PercolatorError> for Error
impl From<PercolatorError> for Error
Source§fn from(error_code: PercolatorError) -> Error
fn from(error_code: PercolatorError) -> Error
Converts to this type from the input type.
Source§impl From<PercolatorError> for u32
impl From<PercolatorError> for u32
Source§fn from(e: PercolatorError) -> u32
fn from(e: PercolatorError) -> u32
Converts to this type from the input type.
impl Copy for PercolatorError
Auto Trait Implementations§
impl Freeze for PercolatorError
impl RefUnwindSafe for PercolatorError
impl Send for PercolatorError
impl Sync for PercolatorError
impl Unpin for PercolatorError
impl UnsafeUnpin for PercolatorError
impl UnwindSafe for PercolatorError
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