pub struct ExecutionEngine<E: Exchange> { /* private fields */ }Expand description
Engine that processes orders through risk checks and exchange submission
Implementations§
Source§impl<E: Exchange> ExecutionEngine<E>
impl<E: Exchange> ExecutionEngine<E>
Sourcepub const fn new(
risk_manager: RiskManager,
event_sender: Sender<ExecutionEvent>,
exchange: E,
) -> Self
pub const fn new( risk_manager: RiskManager, event_sender: Sender<ExecutionEvent>, exchange: E, ) -> Self
Create a new execution engine
Auto Trait Implementations§
impl<E> Freeze for ExecutionEngine<E>where
E: Freeze,
impl<E> RefUnwindSafe for ExecutionEngine<E>where
E: RefUnwindSafe,
impl<E> Send for ExecutionEngine<E>
impl<E> Sync for ExecutionEngine<E>
impl<E> Unpin for ExecutionEngine<E>where
E: Unpin,
impl<E> UnwindSafe for ExecutionEngine<E>where
E: UnwindSafe,
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