pub enum OrderSignal {
PlaceSent,
Ack {
broker_id: BrokerOrderId,
},
PartialFill {
filled: Qty,
left: Qty,
},
Filled,
Cancelled,
Rejected {
reason: String,
},
Timeout,
}Expand description
Something that happened to an order, fed to OrderFsm::apply.
See OrderFsm for which signal is valid in which state.
Variants§
PlaceSent
The place command went out on the wire. Changes nothing, the order is already in flight.
Ack
The broker accepted the order and gave it an id.
Fields
§
broker_id: BrokerOrderIdThe broker’s id for the order.
PartialFill
Part of the order was filled.
Filled
The order is completely filled.
Cancelled
The order was cancelled.
Rejected
The broker refused the order.
Timeout
No answer to the place command came in time. The order may or may not exist at the broker.
Trait Implementations§
Source§impl Clone for OrderSignal
impl Clone for OrderSignal
Source§fn clone(&self) -> OrderSignal
fn clone(&self) -> OrderSignal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OrderSignal
impl Debug for OrderSignal
Source§impl PartialEq for OrderSignal
impl PartialEq for OrderSignal
Source§fn eq(&self, other: &OrderSignal) -> bool
fn eq(&self, other: &OrderSignal) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OrderSignal
Auto Trait Implementations§
impl Freeze for OrderSignal
impl RefUnwindSafe for OrderSignal
impl Send for OrderSignal
impl Sync for OrderSignal
impl Unpin for OrderSignal
impl UnsafeUnpin for OrderSignal
impl UnwindSafe for OrderSignal
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