[][src]Trait tabox::Sandbox

pub trait Sandbox {
    fn run(config: SandboxConfiguration) -> Result<Self>
    where
        Self: Sized
;
fn wait(self) -> Result<SandboxExecutionResult>;
fn is_secure() -> bool; }

A trait that represents a Sandbox

Required methods

fn run(config: SandboxConfiguration) -> Result<Self> where
    Self: Sized

Execute the sandbox

fn wait(self) -> Result<SandboxExecutionResult>

Wait the process to terminate, giving back the execution result

fn is_secure() -> bool

Return true if the sandbox implementation is secure

Loading content...

Implementors

Loading content...