Skip to main content

Sandbox

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;
}

Required Methods§

Source

fn wrap_command(&self, cmd: &mut Command) -> Result<()>

Source

fn is_available(&self) -> bool

Source

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").

Source

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.

Implementors§