#[non_exhaustive]pub enum TradingEvent {
Ack(Order),
Fill(Fill),
Resync,
}Expand description
What Trading::events reports.
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.
Ack(Order)
The venue accepted, changed or ended an order.
Fill(Fill)
An order filled, in part or in full.
Resync
Reconcile through Trading::open_orders and the venue’s trade
history: the stream cannot vouch for what it reported or missed before
this point.
It is the stream’s first item, unless the stream cannot open, when its only item is that error; it comes again after every reconnect of the connection that carries fills, and comes when the venue voids a fill it already reported.
Trait Implementations§
Source§impl Clone for TradingEvent
impl Clone for TradingEvent
Source§impl Debug for TradingEvent
impl Debug for TradingEvent
Source§impl PartialEq for TradingEvent
impl PartialEq for TradingEvent
impl StructuralPartialEq for TradingEvent
Auto Trait Implementations§
impl !RefUnwindSafe for TradingEvent
impl !UnwindSafe for TradingEvent
impl Freeze for TradingEvent
impl Send for TradingEvent
impl Sync for TradingEvent
impl Unpin for TradingEvent
impl UnsafeUnpin for TradingEvent
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