pub struct ExecOptions {
pub env: BTreeMap<String, String>,
pub cwd: Option<String>,
pub stdin: Option<StdinInput>,
pub timeout: Option<f64>,
pub on_stdout: Option<OutputCallback>,
pub on_stderr: Option<OutputCallback>,
pub capture_stdio: Option<bool>,
pub file_path: Option<String>,
pub cpu_time_limit_ms: Option<f64>,
pub timing_mitigation: Option<TimingMitigation>,
}Expand description
Base options shared by exec and spawn.
on_stdout/on_stderr mirror the TS ExecOptions.onStdout/onStderr raw-byte streaming
callbacks. For exec they fire for the duration of the call; for spawn they are seeded into the
stdout/stderr fan-out at spawn time (matching the TS initial-handler-set behavior).
Fields§
§env: BTreeMap<String, String>§cwd: Option<String>§stdin: Option<StdinInput>§timeout: Option<f64>§on_stdout: Option<OutputCallback>§on_stderr: Option<OutputCallback>§capture_stdio: Option<bool>§file_path: Option<String>§cpu_time_limit_ms: Option<f64>§timing_mitigation: Option<TimingMitigation>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ExecOptions
impl !Sync for ExecOptions
impl !UnwindSafe for ExecOptions
impl Freeze for ExecOptions
impl Send for ExecOptions
impl Unpin for ExecOptions
impl UnsafeUnpin for ExecOptions
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
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.