pub trait LatencyModel: Debug {
// Required methods
fn get_insert_latency(&self) -> UnixNanos;
fn get_update_latency(&self) -> UnixNanos;
fn get_delete_latency(&self) -> UnixNanos;
fn get_base_latency(&self) -> UnixNanos;
}Expand description
Trait for latency models used in backtesting.
Latency models simulate network delays for order operations during backtesting. Implementations can provide static or dynamic (jittered) latency values.
Required Methods§
Sourcefn get_insert_latency(&self) -> UnixNanos
fn get_insert_latency(&self) -> UnixNanos
Returns the latency for order insertion operations.
Sourcefn get_update_latency(&self) -> UnixNanos
fn get_update_latency(&self) -> UnixNanos
Returns the latency for order update/modify operations.
Sourcefn get_delete_latency(&self) -> UnixNanos
fn get_delete_latency(&self) -> UnixNanos
Returns the latency for order delete/cancel operations.
Sourcefn get_base_latency(&self) -> UnixNanos
fn get_base_latency(&self) -> UnixNanos
Returns the base latency component.