pub struct NullSandbox {
pub root: PathBuf,
}Expand description
A no-op sandbox: returns a World rooted at the host repo, no isolation.
Fields§
§root: PathBufImplementations§
Trait Implementations§
Source§impl Sandbox for NullSandbox
impl Sandbox for NullSandbox
fn fs_policy(&self) -> FsPolicy
fn net_policy(&self) -> NetPolicy
Source§fn isolation(&self) -> Isolation
fn isolation(&self) -> Isolation
What this backend actually enforces (be honest — see
Isolation).fn spawn<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SandboxHandle, SandboxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Forget for NullSandbox
impl Freeze for NullSandbox
impl RefUnwindSafe for NullSandbox
impl Send for NullSandbox
impl Sync for NullSandbox
impl Unpin for NullSandbox
impl UnsafeUnpin for NullSandbox
impl UnwindSafe for NullSandbox
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