Skip to main content

SandboxLauncher

Trait SandboxLauncher 

Source
pub trait SandboxLauncher: Send + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn launch(
        &self,
        request: &SandboxRequest,
        cancellation: &ProcessCancellation,
    ) -> SandboxAttempt;
}
Expand description

Replaceable object-safe untrusted-process authority boundary.

Required Methods§

Source

fn id(&self) -> &str

Returns the stable boot-registered launcher identity.

Source

fn launch( &self, request: &SandboxRequest, cancellation: &ProcessCancellation, ) -> SandboxAttempt

Attempts the request and reports a complete, refusal, stop, or unknown outcome.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§