#[repr(u32)]pub enum PercolatorError {
Show 14 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,
}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
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