Trait Sandbox
pub trait Sandbox: Send + Sync {
// Required methods
fn wrap_command(&self, cmd: &mut Command) -> Result<()>;
fn is_available(&self) -> bool;
fn name(&self) -> &str;
fn description(&self) -> &str;
// Provided method
fn coding_cli_unsupported_reason(&self) -> Option<&'static str> { ... }
}Required Methods§
fn wrap_command(&self, cmd: &mut Command) -> Result<()>
fn is_available(&self) -> bool
Sourcefn name(&self) -> &str
fn name(&self) -> &str
Return the human-readable name of this sandbox backend.
Used in logs and diagnostics to identify which isolation strategy is
active (e.g., "firejail", "bubblewrap", "none").
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Return a brief description of the isolation guarantees this sandbox provides. Displayed in status output and health checks so operators can verify the active security posture.
Provided Methods§
Sourcefn coding_cli_unsupported_reason(&self) -> Option<&'static str>
fn coding_cli_unsupported_reason(&self) -> Option<&'static str>
Return a reason when this sandbox cannot preserve coding CLI semantics.
Coding CLI tools need a writable validated working directory and selected environment values to reach the actual CLI process. Container-style or replacing wrappers that cannot preserve those semantics must fail closed instead of spawning a misleading partial sandbox.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".