pub trait Sandbox: Send + Sync {
// Required methods
fn wrap_command(&self, cmd: Command) -> Result<Command, SandboxError>;
fn is_available() -> bool
where Self: Sized;
fn sandbox_type(&self) -> &'static str;
}Expand description
Platform-specific sandbox implementation
Required Methods§
Sourcefn wrap_command(&self, cmd: Command) -> Result<Command, SandboxError>
fn wrap_command(&self, cmd: Command) -> Result<Command, SandboxError>
Wrap a command with sandbox restrictions
Sourcefn is_available() -> boolwhere
Self: Sized,
fn is_available() -> boolwhere
Self: Sized,
Check if sandbox is available on this platform
Sourcefn sandbox_type(&self) -> &'static str
fn sandbox_type(&self) -> &'static str
Get the sandbox type name