pub enum Runner {
Sandboxed(Sandboxed),
Plain,
}Expand description
A sandboxed or a plain runner.
Variants§
Implementations§
Source§impl Runner
impl Runner
Sourcepub fn is_sandboxed(&self) -> bool
pub fn is_sandboxed(&self) -> bool
Whether commands are confined (the network rule then matters).
Sourcepub fn run_with(&self, inv: &Invocation, network: bool) -> Outcome
pub fn run_with(&self, inv: &Invocation, network: bool) -> Outcome
Runs inv; network (a person’s approval) widens the network.
Trait Implementations§
Source§impl CommandRunner for Runner
impl CommandRunner for Runner
Source§fn run(&self, inv: &Invocation) -> Outcome
fn run(&self, inv: &Invocation) -> Outcome
Runs
inv to completion or deadline.Auto Trait Implementations§
impl Freeze for Runner
impl RefUnwindSafe for Runner
impl Send for Runner
impl Sync for Runner
impl Unpin for Runner
impl UnsafeUnpin for Runner
impl UnwindSafe for Runner
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