Sandbox

Trait Sandbox 

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

Source

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

Wrap a command with sandbox restrictions

Source

fn is_available() -> bool
where Self: Sized,

Check if sandbox is available on this platform

Source

fn sandbox_type(&self) -> &'static str

Get the sandbox type name

Implementors§