pub enum UdRestFrame {
Place(OrderOperationResponse),
Cancel(OrderOperationResponse),
Replace(OrderOperationResponse),
OrderState(OrderStatusResponse),
ActiveOrders(OrderSearchResponse),
}Expand description
The answer of a REST call, given to the user data core by hand.
UserDataConnector reads the answers of its own commands directly and
does not send them through the core. These frames exist to drive the core in tests and replays.
Variants§
Place(OrderOperationResponse)
The answer to a place request: the order is acknowledged, an Event::Order is pushed.
Cancel(OrderOperationResponse)
The answer to a cancel request: the order is marked cancelled in the core, no event is pushed.
Replace(OrderOperationResponse)
The answer to a replace request: the new order is acknowledged, no event is pushed.
OrderState(OrderStatusResponse)
The answer to an order status read: an Event::Order with the reported state is pushed.
ActiveOrders(OrderSearchResponse)
The answer to an active orders search. The core ignores it.
Trait Implementations§
Source§impl Clone for UdRestFrame
impl Clone for UdRestFrame
Source§fn clone(&self) -> UdRestFrame
fn clone(&self) -> UdRestFrame
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 moreAuto Trait Implementations§
impl Freeze for UdRestFrame
impl RefUnwindSafe for UdRestFrame
impl Send for UdRestFrame
impl Sync for UdRestFrame
impl Unpin for UdRestFrame
impl UnsafeUnpin for UdRestFrame
impl UnwindSafe for UdRestFrame
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