pub struct MockKnobs {
pub order_fail_mode: OrderFailMode,
pub exchange_health: ExchangeHealth,
pub should_timeout: bool,
pub should_rate_limit: bool,
pub fill_all_immediately: bool,
}Expand description
Behavioral controls (“knobs”) for testing
Fields§
§order_fail_mode: OrderFailModeOrder failure mode.
exchange_health: ExchangeHealthSimulated exchange health.
should_timeout: boolWhether requests should timeout.
should_rate_limit: boolWhether requests should rate limit.
fill_all_immediately: boolFill all orders immediately regardless of TIF (for backtesting)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MockKnobs
impl RefUnwindSafe for MockKnobs
impl Send for MockKnobs
impl Sync for MockKnobs
impl Unpin for MockKnobs
impl UnsafeUnpin for MockKnobs
impl UnwindSafe for MockKnobs
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