pub struct BootstrapConfig {
pub connection_file_path: PathBuf,
pub port: u16,
pub daemon_ver: String,
/* private fields */
}Fields§
§connection_file_path: PathBuf§port: u16§daemon_ver: StringImplementations§
Source§impl BootstrapConfig
impl BootstrapConfig
pub fn new(connection_file_path: impl Into<PathBuf>, port: u16) -> Self
Sourcepub fn with_cgroup_placement(self, placement: CgroupPlacementConfig) -> Self
pub fn with_cgroup_placement(self, placement: CgroupPlacementConfig) -> Self
Selects module cgroup placement. The default is disabled.
Sourcepub fn with_capture_logs_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn with_capture_logs_dir(self, dir: impl Into<PathBuf>) -> Self
Redirects per-module stdout/stderr capture files out of the real run directory. Tests that start an in-process daemon must call this with a path inside their fixture tree.
Sourcepub fn with_terminal_journal_path(self, path: impl Into<PathBuf>) -> Self
pub fn with_terminal_journal_path(self, path: impl Into<PathBuf>) -> Self
Redirects the daemon-private journal, allowing embedded daemons and tests to keep their observations out of the operator’s live run directory.
pub fn from_env() -> Result<Self, BootstrapError>
Sourcepub fn from_env_for_daemon_binary() -> Result<Self, BootstrapError>
pub fn from_env_for_daemon_binary() -> Result<Self, BootstrapError>
The SHIPPED BINARY’s config, which is the only caller that should capture child output into the operator’s real run directory.
Kept separate from from_env deliberately: see capture_logs_dir on this
struct for why an absent value must mean NO CAPTURE rather than the real
directory.
pub fn from_env_with_daemon_config_path( daemon_config_path: impl AsRef<Path>, ) -> Result<Self, BootstrapError>
pub fn with_daemon_config_path( self, daemon_config_path: impl AsRef<Path>, ) -> Result<Self, BootstrapError>
pub fn with_configured_modules( self, modules: impl IntoIterator<Item = ConfiguredModule>, ) -> Self
pub fn with_storage_config(self, storage_config: Option<StorageConfig>) -> Self
pub fn with_admission_facts_config( self, carrier_module_id: Option<String>, targets: Option<Vec<String>>, ) -> Self
Sourcepub fn with_route_bind_relay_default_ms(self, ms: Option<u64>) -> Self
pub fn with_route_bind_relay_default_ms(self, ms: Option<u64>) -> Self
Set the daemon-wide route.bind relay default (the fallback for any
module without a per-module override). None preserves the built-in
default (12s). serve_bound_daemon reads this at startup and threads
it into the control handler’s daemon-wide field.