pub trait SandboxedCommand: Send + Sync {
// Required methods
fn execute(&self) -> Result<CommandResult>;
fn display(&self) -> String;
fn is_read_only(&self) -> bool;
}Expand description
Trait for sandboxed command execution
This trait abstracts command execution to allow different sandboxing implementations (basic, Docker, Landlock, etc.)
Required Methods§
Sourcefn execute(&self) -> Result<CommandResult>
fn execute(&self) -> Result<CommandResult>
Execute the command and return the result
Sourcefn is_read_only(&self) -> bool
fn is_read_only(&self) -> bool
Check if the command is read-only (no side effects)