pub struct Sandbox { /* private fields */ }
Implementations§
Source§impl Sandbox
impl Sandbox
pub fn new() -> Sandbox
pub fn add_directory<P: AsRef<Path>>( &mut self, key: &str, path: P, ) -> &mut Sandbox
pub fn sandbox_this_process(&self) -> Result<SandboxContext, ()>
pub fn sandboxed_fork<F>(&self, fun: F) -> Result<RunningSandbox>
Auto Trait Implementations§
impl Freeze for Sandbox
impl RefUnwindSafe for Sandbox
impl Send for Sandbox
impl Sync for Sandbox
impl Unpin for Sandbox
impl UnwindSafe for Sandbox
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