pub struct HostConfig {
pub aq_data_dir: PathBuf,
pub context_store_path: PathBuf,
pub tick_interval: Duration,
pub dispatch_concurrency: NonZeroUsize,
pub lease_timeout_secs: u64,
pub compiler_config: CompilerConfig,
pub shutdown_timeout: Duration,
pub metrics: Arc<dyn MetricsRecorder>,
}Expand description
Configuration for the embedded WorldInterface host.
Fields§
§aq_data_dir: PathBufDirectory for AQ WAL and snapshot files.
context_store_path: PathBufPath to the SQLite ContextStore database file.
tick_interval: DurationHow often the background tick loop runs (drives AQ dispatch + coordinator resume). Default: 50ms.
dispatch_concurrency: NonZeroUsizeMaximum concurrent handler executions (maps to AQ’s dispatch_concurrency). Default: 4.
lease_timeout_secs: u64AQ lease timeout in seconds. Must be long enough for the longest connector invocation. Default: 300 (5 minutes).
compiler_config: CompilerConfigCompiler configuration for FlowSpec compilation.
shutdown_timeout: DurationGraceful shutdown timeout. How long to wait for in-flight work to complete. Default: 30 seconds.
metrics: Arc<dyn MetricsRecorder>Metrics recorder for observability.
Defaults to NoopMetricsRecorder (no-op) for embedded/test use.
Implementations§
Trait Implementations§
Source§impl Clone for HostConfig
impl Clone for HostConfig
Source§fn clone(&self) -> HostConfig
fn clone(&self) -> HostConfig
Returns a duplicate 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 HostConfig
impl Debug for HostConfig
Auto Trait Implementations§
impl Freeze for HostConfig
impl !RefUnwindSafe for HostConfig
impl Send for HostConfig
impl Sync for HostConfig
impl Unpin for HostConfig
impl UnsafeUnpin for HostConfig
impl !UnwindSafe for HostConfig
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