SandboxedCommand

Trait SandboxedCommand 

Source
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§

Source

fn execute(&self) -> Result<CommandResult>

Execute the command and return the result

Source

fn display(&self) -> String

Get the command string for display

Source

fn is_read_only(&self) -> bool

Check if the command is read-only (no side effects)

Implementors§