pub struct ShellExecOptions<'a> {
pub shell: Option<ShellOverride>,
pub cwd: Option<PathBuf>,
pub env: Option<HashMap<String, String>>,
pub inherit_env: bool,
pub timeout: Option<f64>,
pub cancel: Option<&'a CancellationToken>,
pub on_stdout: Option<Box<dyn FnMut(&str) + Send + 'a>>,
pub on_stderr: Option<Box<dyn FnMut(&str) + Send + 'a>>,
}Fields§
§shell: Option<ShellOverride>Optional executable and fixed arguments. None keeps the environment’s
default shell (Bash on POSIX/Windows), while tools such as PowerShell
can select their native interpreter without going through Bash.
cwd: Option<PathBuf>§env: Option<HashMap<String, String>>§inherit_env: boolDefault true. When false, ONLY env is used (no process env, no
shell base env).
timeout: Option<f64>Seconds. None = no timeout.
cancel: Option<&'a CancellationToken>§on_stdout: Option<Box<dyn FnMut(&str) + Send + 'a>>§on_stderr: Option<Box<dyn FnMut(&str) + Send + 'a>>Implementations§
Source§impl<'a> ShellExecOptions<'a>
impl<'a> ShellExecOptions<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ShellExecOptions<'a>
impl<'a> !Sync for ShellExecOptions<'a>
impl<'a> !UnwindSafe for ShellExecOptions<'a>
impl<'a> Freeze for ShellExecOptions<'a>
impl<'a> Send for ShellExecOptions<'a>
impl<'a> Unpin for ShellExecOptions<'a>
impl<'a> UnsafeUnpin for ShellExecOptions<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().