#[non_exhaustive]pub enum OrderStatus {
Open,
Filled,
Cancelled,
Killed {
reason: KillReason,
},
}Expand description
Where an order stands.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Open
Resting, possibly partly filled.
Filled
Filled in full.
Cancelled
Cancelled, by the caller or the venue, possibly partly filled.
Killed
Killed by its time in force: a defined outcome, not an error.
Fields
§
reason: KillReasonWhy.
Trait Implementations§
Source§impl Clone for OrderStatus
impl Clone for OrderStatus
impl Copy for OrderStatus
Source§impl Debug for OrderStatus
impl Debug for OrderStatus
impl Eq for OrderStatus
Source§impl Hash for OrderStatus
impl Hash for OrderStatus
Source§impl PartialEq for OrderStatus
impl PartialEq for OrderStatus
impl StructuralPartialEq for OrderStatus
Auto Trait Implementations§
impl Freeze for OrderStatus
impl RefUnwindSafe for OrderStatus
impl Send for OrderStatus
impl Sync for OrderStatus
impl Unpin for OrderStatus
impl UnsafeUnpin for OrderStatus
impl UnwindSafe for OrderStatus
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