pub trait Sandbox: Send + Sync {
// Required methods
fn backend_name(&self) -> &'static str;
fn ensure_ready<'life0, 'life1, 'async_trait>(
&'life0 self,
session_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn exec<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
session_key: &'life1 str,
command: &'life2 str,
opts: &'life3 SandboxExecOptions,
) -> Pin<Box<dyn Future<Output = Result<SandboxExecResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
// Provided method
fn is_real(&self) -> bool { ... }
}Required Methods§
fn backend_name(&self) -> &'static str
fn ensure_ready<'life0, 'life1, 'async_trait>(
&'life0 self,
session_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn exec<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
session_key: &'life1 str,
command: &'life2 str,
opts: &'life3 SandboxExecOptions,
) -> Pin<Box<dyn Future<Output = Result<SandboxExecResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".