Skip to main content

Sandbox

Trait Sandbox 

Source
pub trait Sandbox: Send {
    // Required method
    fn run(&mut self, job: &SandboxJob) -> Result<SandboxOutcome, AxError>;
}
Expand description

The seam. One method: hand it a job, get back what the guest did. Send, because the exec tool that holds one is Send (crates/sprawling/Spec.lean §8-44); every adapter here already was.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§