Trait tabox::Sandbox [−][src]
pub trait Sandbox {
fn run(config: SandboxConfiguration) -> Result<Self>
where
Self: Sized;
fn wait(self) -> Result<SandboxExecutionResult>;
fn is_secure() -> bool;
}
Expand description
A trait that represents a Sandbox
Required methods
fn run(config: SandboxConfiguration) -> Result<Self> where
Self: Sized,
fn run(config: SandboxConfiguration) -> Result<Self> where
Self: Sized,
Execute the sandbox
fn wait(self) -> Result<SandboxExecutionResult>
fn wait(self) -> Result<SandboxExecutionResult>
Wait the process to terminate, giving back the execution result