pub struct ExecutionEngine { /* private fields */ }Expand description
An execution management engine that routes orders to appropriate exchange connections
Implementations§
Source§impl ExecutionEngine
impl ExecutionEngine
Sourcepub fn new(
event_receiver: Receiver<ExecutionEvent>,
report_sender: Sender<ExecutionReport>,
) -> Self
pub fn new( event_receiver: Receiver<ExecutionEvent>, report_sender: Sender<ExecutionReport>, ) -> Self
Create a new execution engine
Sourcepub fn with_worker_count(
event_receiver: Receiver<ExecutionEvent>,
report_sender: Sender<ExecutionReport>,
worker_count: usize,
) -> Self
pub fn with_worker_count( event_receiver: Receiver<ExecutionEvent>, report_sender: Sender<ExecutionReport>, worker_count: usize, ) -> Self
Create a new execution engine with a specific worker count
Sourcepub fn register_exchange(&mut self, exchange: Arc<dyn Exchange>)
pub fn register_exchange(&mut self, exchange: Arc<dyn Exchange>)
Register an exchange adapter with this execution engine
Sourcepub fn report_sender(&self) -> Sender<ExecutionReport>
pub fn report_sender(&self) -> Sender<ExecutionReport>
Get a execution report channel that sends to this engine
Sourcepub fn event_receiver(&self) -> Receiver<ExecutionEvent>
pub fn event_receiver(&self) -> Receiver<ExecutionEvent>
Get an execution event channel that this engine listens to
Auto Trait Implementations§
impl Freeze for ExecutionEngine
impl !RefUnwindSafe for ExecutionEngine
impl Send for ExecutionEngine
impl Sync for ExecutionEngine
impl Unpin for ExecutionEngine
impl !UnwindSafe for ExecutionEngine
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