pub struct EngineExec { /* private fields */ }Expand description
The engine’s subprocesses for one session.
Implementations§
Source§impl EngineExec
impl EngineExec
pub fn new( exec: ExecProviders, confinement: Confinement, trust: ProjectTrust, ) -> Self
Sourcepub fn with_min_deadline(self, floor: Duration) -> Self
pub fn with_min_deadline(self, floor: Duration) -> Self
Every call may take at least floor, whatever deadline it asks for.
pub fn exec(&self) -> &ExecProviders
pub fn is_sandboxed(&self) -> bool
Sourcepub fn tmpdir(&self) -> Option<&Path>
pub fn tmpdir(&self) -> Option<&Path>
The session’s own temporary directory, when the engine’s processes are sandboxed and it has been made.
Sourcepub async fn git(
&self,
cwd: &Path,
access: GitAccess<'_>,
args: &[&str],
deadline: Duration,
) -> Result<Captured, EngineExecError>
pub async fn git( &self, cwd: &Path, access: GitAccess<'_>, args: &[&str], deadline: Duration, ) -> Result<Captured, EngineExecError>
git <options> <args> in cwd, never asking for credentials on a
terminal. The only way the engine starts git.
Sourcepub async fn helper(
&self,
spec: ProcessSpec,
writable: &[PathBuf],
deadline: Duration,
) -> Result<Captured, EngineExecError>
pub async fn helper( &self, spec: ProcessSpec, writable: &[PathBuf], deadline: Duration, ) -> Result<Captured, EngineExecError>
A helper program, confined as the session’s commands are, writing
nothing but writable.
Trait Implementations§
Source§impl Clone for EngineExec
impl Clone for EngineExec
Auto Trait Implementations§
impl !RefUnwindSafe for EngineExec
impl !UnwindSafe for EngineExec
impl Forget for EngineExec
impl Freeze for EngineExec
impl Move for EngineExec
impl Send for EngineExec
impl Sync for EngineExec
impl Unpin for EngineExec
impl UnsafeUnpin for EngineExec
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