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§
Sourcefn run(config: SandboxConfiguration) -> Result<Self>where
Self: Sized,
fn run(config: SandboxConfiguration) -> Result<Self>where
Self: Sized,
Execute the sandbox
Sourcefn wait(self) -> Result<SandboxExecutionResult>
fn wait(self) -> Result<SandboxExecutionResult>
Wait the process to terminate, giving back the execution result
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".