pub enum Confinement {
Unconfined,
Sandboxed {
policy: SandboxPolicy,
require_enforcement: bool,
tmpdir: Option<PathBuf>,
},
}Expand description
Whether the engine’s subprocesses run in the session’s sandbox.
Variants§
Unconfined
The session’s commands are not confined, so a confined command cannot have prepared the repository.
Sandboxed
Inside exec.sandbox, under the session’s own policy narrowed per
call: no network, and nothing writable but tmpdir and what the call
names. tmpdir becomes the subprocess’s TMPDIR.
Trait Implementations§
Source§impl Clone for Confinement
impl Clone for Confinement
Source§impl Debug for Confinement
impl Debug for Confinement
Auto Trait Implementations§
impl Forget for Confinement
impl Freeze for Confinement
impl Move for Confinement
impl RefUnwindSafe for Confinement
impl Send for Confinement
impl Sync for Confinement
impl Unpin for Confinement
impl UnsafeUnpin for Confinement
impl UnwindSafe for Confinement
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