pub enum CommandError {
ZeroPrice,
ZeroQuantity,
IcebergZeroHiddenQuantity,
IcebergZeroReplenishQuantity,
IcebergImmediateTif,
PostOnlyImmediateTif,
PeggedNonTakerImmediateTif,
PeggedAlwaysTakerPostOnly,
EmptyPatch,
Expired,
SameLevelImmediateTif,
}Expand description
Error that violates the invariants of a command
Variants§
ZeroPrice
The price of the order is zero
ZeroQuantity
The quantity of the order is zero
IcebergZeroHiddenQuantity
The hidden quantity of the iceberg order is zero
IcebergZeroReplenishQuantity
The replenish quantity of the iceberg order is zero
IcebergImmediateTif
The iceberg order has an immediate time in force
PostOnlyImmediateTif
The order is post-only but has an immediate time in force
PeggedNonTakerImmediateTif
The pegged order cannot be a taker but has an immediate time in force
PeggedAlwaysTakerPostOnly
The pegged order is always a taker but is post-only
EmptyPatch
The patch is empty
Expired
The command has expired
SameLevelImmediateTif
The order stays at the same level but becomes having an immediate time in force
Trait Implementations§
Source§impl Clone for CommandError
impl Clone for CommandError
Source§fn clone(&self) -> CommandError
fn clone(&self) -> CommandError
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 CommandError
impl Debug for CommandError
Source§impl<'de> Deserialize<'de> for CommandError
impl<'de> Deserialize<'de> for CommandError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CommandError
impl Display for CommandError
Source§impl PartialEq for CommandError
impl PartialEq for CommandError
Source§impl Serialize for CommandError
impl Serialize for CommandError
impl Eq for CommandError
impl StructuralPartialEq for CommandError
Auto Trait Implementations§
impl Freeze for CommandError
impl RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl UnsafeUnpin for CommandError
impl UnwindSafe for CommandError
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