pub trait Sandbox: Send + Sync {
// Required methods
fn exec<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
cmd: &'life1 Command,
limits: &'life2 Limits,
) -> Pin<Box<dyn Future<Output = Result<ExecResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn root(&self) -> &Path;
fn policy(&self) -> &FsNetPolicy;
}Expand description
Isolates exec/Mutating actions. Backends are selectable per run.
Required Methods§
fn exec<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
cmd: &'life1 Command,
limits: &'life2 Limits,
) -> Pin<Box<dyn Future<Output = Result<ExecResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn root(&self) -> &Path
fn policy(&self) -> &FsNetPolicy
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".