pub struct BridgeConfig {Show 16 fields
pub dir: String,
pub machine_name: String,
pub branch: String,
pub git_repo_url: Option<String>,
pub max_sessions: u32,
pub spawn_mode: SpawnMode,
pub verbose: bool,
pub sandbox: bool,
pub bridge_id: String,
pub worker_type: String,
pub environment_id: String,
pub reuse_environment_id: Option<String>,
pub api_base_url: String,
pub session_ingress_url: String,
pub debug_file: Option<String>,
pub session_timeout_ms: Option<u64>,
}Expand description
Bridge configuration
Fields§
§dir: String§machine_name: String§branch: String§git_repo_url: Option<String>§max_sessions: u32§spawn_mode: SpawnMode§verbose: bool§sandbox: bool§bridge_id: StringClient-generated UUID identifying this bridge instance.
worker_type: StringSent as metadata.worker_type so web clients can filter by origin. Backend treats this as opaque — any string, not just BridgeWorkerType.
environment_id: StringClient-generated UUID for idempotent environment registration.
reuse_environment_id: Option<String>Backend-issued environment_id to reuse on re-register. When set, the
backend treats registration as a reconnect to the existing environment
instead of creating a new one. Used by claude remote-control --session-id resume. Must be a backend-format ID — client UUIDs are
rejected with 400.
api_base_url: StringAPI base URL the bridge is connected to (used for polling).
session_ingress_url: StringSession ingress base URL for WebSocket connections (may differ from apiBaseUrl locally).
debug_file: Option<String>Debug file path passed via –debug-file.
session_timeout_ms: Option<u64>Per-session timeout in milliseconds. Sessions exceeding this are killed.
Trait Implementations§
Source§impl Clone for BridgeConfig
impl Clone for BridgeConfig
Source§fn clone(&self) -> BridgeConfig
fn clone(&self) -> BridgeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more