pub struct ServerState {
pub symbol_registry: SymbolRegistry,
pub instrument_domain: InstrumentDomain,
pub profile_registry: RwLock<ProfileRegistry>,
pub data_dir: String,
pub profiles_path: String,
pub start_time: Instant,
pub jobs: Mutex<HashMap<String, BacktestJob>>,
pub max_retained_jobs: usize,
pub artifact_store: ArtifactStore,
pub strategies: StrategyServiceState,
}Expand description
Shared state accessible by all client handlers.
Fields§
§symbol_registry: SymbolRegistrySymbol registry for compatibility normalization and current currency metadata.
instrument_domain: InstrumentDomainImmutable instrument catalog and stored-series identity policy.
profile_registry: RwLock<ProfileRegistry>Management profile registry (TOML-loaded + dynamically added).
data_dir: StringRoot directory for Parquet market data.
profiles_path: StringPath to the profiles TOML file (for reload).
start_time: InstantServer start time for uptime reporting.
jobs: Mutex<HashMap<String, BacktestJob>>Async backtest job storage (Issue 2).
max_retained_jobs: usizeHard bound for queued, running, and retained terminal jobs.
artifact_store: ArtifactStoreFilesystem storage for complete large result JSON payloads.
strategies: StrategyServiceStateLimits for configured strategy runs and the gate that runs one search at a time.
Auto Trait Implementations§
impl !Freeze for ServerState
impl RefUnwindSafe for ServerState
impl Send for ServerState
impl Sync for ServerState
impl Unpin for ServerState
impl UnsafeUnpin for ServerState
impl UnwindSafe for ServerState
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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