pub struct ExecutionEngineConfig {
pub load_cache: bool,
pub snapshot_orders: bool,
pub snapshot_positions: bool,
pub snapshot_positions_interval_secs: Option<f64>,
pub debug: bool,
}
Expand description
Configuration for ExecutionEngine
instances.
Fields§
§load_cache: bool
If the cache should be loaded on initialization
snapshot_orders: bool
If order state snapshot lists are persisted to a backing database. Snapshots will be taken at every order state update (when events are applied).
snapshot_positions: bool
If position state snapshot lists are persisted to a backing database. Snapshots will be taken at position opened, changed and closed (when events are applied).
snapshot_positions_interval_secs: Option<f64>
The interval (seconds) at which additional position state snapshots are persisted If None then no additional snapshots will be taken
debug: bool
If debug mode is active (will provide extra debug logging)
Trait Implementations§
Source§impl Clone for ExecutionEngineConfig
impl Clone for ExecutionEngineConfig
Source§fn clone(&self) -> ExecutionEngineConfig
fn clone(&self) -> ExecutionEngineConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExecutionEngineConfig
impl Debug for ExecutionEngineConfig
Source§impl Default for ExecutionEngineConfig
impl Default for ExecutionEngineConfig
Source§impl<'de> Deserialize<'de> for ExecutionEngineConfig
impl<'de> Deserialize<'de> for ExecutionEngineConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecutionEngineConfig
impl RefUnwindSafe for ExecutionEngineConfig
impl Send for ExecutionEngineConfig
impl Sync for ExecutionEngineConfig
impl Unpin for ExecutionEngineConfig
impl UnwindSafe for ExecutionEngineConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more