pub struct FactoryConfig {
pub accounts: u32,
pub instruments: u32,
pub max_orders_per_account: u32,
pub max_orders_per_second: u32,
pub max_orders_burst: u32,
}Expand description
Construction config for Factory. Mirrors the
trading-shaped fields of ServerConfig; kept as its own struct
so the binary can build one independently of the larger runtime
config when the eventual ServerConfig split happens.
Fields§
§accounts: u32Number of accounts to provision at startup.
instruments: u32Number of instruments to register at startup.
max_orders_per_account: u32SEC-03: maximum simultaneously open orders per account.
max_orders_per_second: u32SEC-04: token-bucket refill rate, orders per second. 0
disables the limiter.
max_orders_burst: u32SEC-04: token-bucket capacity (max burst). 0 disables
the limiter.
Trait Implementations§
Source§impl Clone for FactoryConfig
impl Clone for FactoryConfig
Source§fn clone(&self) -> FactoryConfig
fn clone(&self) -> FactoryConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FactoryConfig
Auto Trait Implementations§
impl Freeze for FactoryConfig
impl RefUnwindSafe for FactoryConfig
impl Send for FactoryConfig
impl Sync for FactoryConfig
impl Unpin for FactoryConfig
impl UnsafeUnpin for FactoryConfig
impl UnwindSafe for FactoryConfig
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