pub struct ProcessSandbox { /* private fields */ }Expand description
Process runner backed by the host’s OS sandbox (sandbox-exec on macOS,
bwrap on Linux). It fails closed when isolation is required but absent.
Implementations§
Source§impl ProcessSandbox
impl ProcessSandbox
pub fn new( program: impl Into<String>, args: Vec<String>, policy: ProcessPolicy, ) -> Result<Self>
pub fn prepare_invocation(&self) -> Result<PreparedProcess>
Trait Implementations§
Source§impl Clone for ProcessSandbox
impl Clone for ProcessSandbox
Source§fn clone(&self) -> ProcessSandbox
fn clone(&self) -> ProcessSandbox
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessSandbox
impl Debug for ProcessSandbox
Source§impl SandboxedCommand for ProcessSandbox
impl SandboxedCommand for ProcessSandbox
Auto Trait Implementations§
impl Freeze for ProcessSandbox
impl RefUnwindSafe for ProcessSandbox
impl Send for ProcessSandbox
impl Sync for ProcessSandbox
impl Unpin for ProcessSandbox
impl UnsafeUnpin for ProcessSandbox
impl UnwindSafe for ProcessSandbox
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