Trait gaol::sandbox::SandboxMethods
[−]
[src]
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.
Implementors
impl SandboxMethods for Sandbox