pub struct Config {Show 16 fields
pub name: Option<String>,
pub control_host: String,
pub advertise_host: Option<String>,
pub control_port: u16,
pub debug_port: u16,
pub daemon_url: String,
pub lldb_dap_path: Option<PathBuf>,
pub detrix_home: Option<PathBuf>,
pub workspace_root: Option<String>,
pub safe_mode: bool,
pub build_commit: Option<String>,
pub build_tag: Option<String>,
pub health_check_timeout: Duration,
pub register_timeout: Duration,
pub unregister_timeout: Duration,
pub lldb_start_timeout: Duration,
}Expand description
Configuration for the Detrix client.
Fields§
§name: Option<String>Connection name (default: “detrix-client-{pid}”)
control_host: StringControl plane bind host (default: “127.0.0.1”)
advertise_host: Option<String>Advertise host for registration with daemon.
If set, this host is sent to the daemon instead of control_host.
Useful in Docker/cloud where bind address (0.0.0.0) differs from
the reachable address (container hostname).
control_port: u16Control plane port (0 = auto-assign)
debug_port: u16Debug adapter port (0 = auto-assign)
daemon_url: StringDetrix daemon URL (default: “http://127.0.0.1:8090”)
lldb_dap_path: Option<PathBuf>Path to lldb-dap binary (default: searches PATH)
detrix_home: Option<PathBuf>Detrix home directory (default: ~/detrix)
workspace_root: Option<String>Override workspace root sent to daemon (default: current working directory). Set this in Docker/cloud where the CWD doesn’t match the build source path.
safe_mode: boolSafe mode: only logpoints allowed, no breakpoint operations. Recommended for production environments.
build_commit: Option<String>Explicit build commit override (optional)
build_tag: Option<String>Explicit build tag override (optional)
health_check_timeout: DurationTimeout for daemon health checks
register_timeout: DurationTimeout for connection registration
unregister_timeout: DurationTimeout for connection unregistration
lldb_start_timeout: DurationTimeout for lldb-dap to start
Implementations§
Source§impl Config
impl Config
Sourcepub fn with_env_overrides(self) -> Self
pub fn with_env_overrides(self) -> Self
Apply environment variable overrides.
Environment variables take precedence over defaults but are overridden by explicitly set config values.
Sourcepub fn connection_name(&self) -> String
pub fn connection_name(&self) -> String
Generate the connection name.
Returns the configured name or generates one as “detrix-client-{pid}”.
Sourcepub fn detrix_home_path(&self) -> Option<PathBuf>
pub fn detrix_home_path(&self) -> Option<PathBuf>
Get the detrix home directory.
Returns the configured path or defaults to ~/detrix.