[][src]Trait gaol::sandbox::SandboxMethods

pub trait SandboxMethods {
    fn profile(&self) -> &Profile;
fn start(&self, command: &mut Command) -> Result<Process>; }

All platform-specific sandboxes implement this trait.

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

Required methods

fn profile(&self) -> &Profile

Returns this sandbox profile.

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

Spawns a child process eligible for sandboxing.

Loading content...

Implementors

impl SandboxMethods for Sandbox[src]

Loading content...