Struct rusty_sandbox::Sandbox
source · [−]pub struct Sandbox { /* private fields */ }
Implementations
sourceimpl 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>where
F: Fn(&mut SandboxContext, &mut UnixStream),
Auto Trait Implementations
impl RefUnwindSafe for Sandbox
impl Send for Sandbox
impl Sync for Sandbox
impl Unpin for Sandbox
impl UnwindSafe for Sandbox
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more