Trait Sandbox

Source
pub trait Sandbox {
    // Required methods
    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§

Source

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

Execute the sandbox

Source

fn wait(self) -> Result<SandboxExecutionResult>

Wait the process to terminate, giving back the execution result

Source

fn is_secure() -> bool

Return true if the sandbox implementation is secure

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§