pub struct DaemonConfig {
pub bind_address: String,
pub aq_data_dir: PathBuf,
pub context_store_path: PathBuf,
pub tick_interval_ms: u64,
pub dispatch_concurrency: usize,
pub lease_timeout_secs: u64,
pub shutdown_timeout_secs: u64,
}Expand description
Configuration for the WorldInterface daemon.
Fields§
§bind_address: StringSocket address to bind the HTTP server.
aq_data_dir: PathBufDirectory for AQ WAL and snapshot files.
context_store_path: PathBufPath to the SQLite ContextStore database file.
tick_interval_ms: u64Tick interval in milliseconds.
dispatch_concurrency: usizeMaximum concurrent handler executions.
lease_timeout_secs: u64AQ lease timeout in seconds.
shutdown_timeout_secs: u64Graceful shutdown timeout in seconds.
Implementations§
Source§impl DaemonConfig
impl DaemonConfig
Sourcepub fn load(config_path: Option<&Path>) -> Result<Self, DaemonError>
pub fn load(config_path: Option<&Path>) -> Result<Self, DaemonError>
Load configuration with precedence: env vars > config file > defaults.
Sourcepub fn to_host_config(&self) -> HostConfig
pub fn to_host_config(&self) -> HostConfig
Convert to HostConfig for EmbeddedHost::start().
Trait Implementations§
Source§impl Clone for DaemonConfig
impl Clone for DaemonConfig
Source§fn clone(&self) -> DaemonConfig
fn clone(&self) -> DaemonConfig
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 DaemonConfig
impl Debug for DaemonConfig
Source§impl Default for DaemonConfig
impl Default for DaemonConfig
Source§impl<'de> Deserialize<'de> for DaemonConfig
impl<'de> Deserialize<'de> for DaemonConfig
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 DaemonConfig
impl RefUnwindSafe for DaemonConfig
impl Send for DaemonConfig
impl Sync for DaemonConfig
impl Unpin for DaemonConfig
impl UnsafeUnpin for DaemonConfig
impl UnwindSafe for DaemonConfig
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