Trait gaol::sandbox::SandboxMethods

source ·
pub trait SandboxMethods {
    // Required methods
    fn profile(&self) -> &Profile;
    fn start(&self, command: &mut Command) -> Result<Process>;
}
Expand description

All platform-specific sandboxes implement this trait.

A new sandbox can be created with Sandbox::new(), which all platform-specific sandboxes implement.

Required Methods§

source

fn profile(&self) -> &Profile

Returns this sandbox profile.

source

fn start(&self, command: &mut Command) -> Result<Process>

Spawns a child process eligible for sandboxing.

Implementors§