#[repr(align(64))]pub struct OptimizedExecutionEngine { /* private fields */ }Expand description
Optimized, cache-aware execution engine for high-frequency trading
Implementations§
Source§impl OptimizedExecutionEngine
impl OptimizedExecutionEngine
Sourcepub fn new(
event_rx: Receiver<ExecutionEvent>,
report_tx: Sender<ExecutionReport>,
) -> Self
pub fn new( event_rx: Receiver<ExecutionEvent>, report_tx: Sender<ExecutionReport>, ) -> Self
Create a new execution engine
Sourcepub fn with_options(
event_rx: Receiver<ExecutionEvent>,
report_tx: Sender<ExecutionReport>,
batch_size: usize,
max_concurrent_tasks: usize,
) -> Self
pub fn with_options( event_rx: Receiver<ExecutionEvent>, report_tx: Sender<ExecutionReport>, batch_size: usize, max_concurrent_tasks: usize, ) -> Self
Create a new execution engine with custom batch size and concurrency
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
Sourcepub fn get_stats(&self) -> ExecutionStats
pub fn get_stats(&self) -> ExecutionStats
Get current execution statistics
Auto Trait Implementations§
impl Freeze for OptimizedExecutionEngine
impl !RefUnwindSafe for OptimizedExecutionEngine
impl Send for OptimizedExecutionEngine
impl Sync for OptimizedExecutionEngine
impl Unpin for OptimizedExecutionEngine
impl !UnwindSafe for OptimizedExecutionEngine
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