pub struct PythonLatencyModel { /* private fields */ }Expand description
Retains a Python latency model across configuration and runtime handle clones.
Trait Implementations§
Source§impl Clone for PythonLatencyModel
impl Clone for PythonLatencyModel
Source§impl Debug for PythonLatencyModel
impl Debug for PythonLatencyModel
Source§impl LatencyModel for PythonLatencyModel
impl LatencyModel for PythonLatencyModel
Source§fn get_insert_latency(
&self,
command: &TradingCommand,
ts_now: UnixNanos,
) -> Result<DurationNanos>
fn get_insert_latency( &self, command: &TradingCommand, ts_now: UnixNanos, ) -> Result<DurationNanos>
Returns the latency for order insertion operations. Read more
Source§fn get_update_latency(
&self,
command: &TradingCommand,
ts_now: UnixNanos,
) -> Result<DurationNanos>
fn get_update_latency( &self, command: &TradingCommand, ts_now: UnixNanos, ) -> Result<DurationNanos>
Returns the latency for order update/modify operations. Read more
Source§fn get_delete_latency(
&self,
command: &TradingCommand,
ts_now: UnixNanos,
) -> Result<DurationNanos>
fn get_delete_latency( &self, command: &TradingCommand, ts_now: UnixNanos, ) -> Result<DurationNanos>
Returns the latency for order delete/cancel operations. Read more
Source§fn get_base_latency(&self) -> DurationNanos
fn get_base_latency(&self) -> DurationNanos
Returns the base latency component.
Auto Trait Implementations§
impl !RefUnwindSafe for PythonLatencyModel
impl Freeze for PythonLatencyModel
impl Send for PythonLatencyModel
impl Sync for PythonLatencyModel
impl Unpin for PythonLatencyModel
impl UnsafeUnpin for PythonLatencyModel
impl UnwindSafe for PythonLatencyModel
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