pub struct ExecutionEngineConfig {
pub load_cache: bool,
pub manage_own_order_books: bool,
pub snapshot_orders: bool,
pub snapshot_positions: bool,
pub snapshot_positions_interval_secs: Option<f64>,
pub external_clients: Option<Vec<ClientId>>,
pub debug: bool,
}
Expand description
Configuration for ExecutionEngine
instances.
Fields§
§load_cache: bool
If the cache should be loaded on initialization.
manage_own_order_books: bool
If the execution engine should maintain own/user order books based on commands and events.
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.
external_clients: Option<Vec<ClientId>>
The client IDs declared for external stream processing.
The execution engine will not attempt to send trading commands to these client IDs, assuming an external process will consume the serialized command messages from the bus and handle execution.
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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
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>
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>
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