pub struct DirectSandbox;Expand description
A backend that enforces nothing; the default when no hypervisor is available.
It exists so the trait has a working implementation and so an unprotected
run is explicitly reported by Sandbox::is_isolated rather than assumed.
Trait Implementations§
Source§impl Clone for DirectSandbox
impl Clone for DirectSandbox
impl Copy for DirectSandbox
Source§impl Debug for DirectSandbox
impl Debug for DirectSandbox
Source§impl Default for DirectSandbox
impl Default for DirectSandbox
Source§impl Sandbox for DirectSandbox
impl Sandbox for DirectSandbox
Source§fn is_isolated(&self) -> bool
fn is_isolated(&self) -> bool
Whether this backend actually enforces isolation. Read more
Source§fn exec(
&self,
spec: &SandboxSpec,
command: &SandboxCommand,
) -> Result<SandboxOutput, SandboxError>
fn exec( &self, spec: &SandboxSpec, command: &SandboxCommand, ) -> Result<SandboxOutput, SandboxError>
Run
command under spec.Auto Trait Implementations§
impl Freeze for DirectSandbox
impl RefUnwindSafe for DirectSandbox
impl Send for DirectSandbox
impl Sync for DirectSandbox
impl Unpin for DirectSandbox
impl UnsafeUnpin for DirectSandbox
impl UnwindSafe for DirectSandbox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more