#[non_exhaustive]pub struct StreamOptions {
pub timeout: Option<Duration>,
pub poll: Duration,
pub stdout_tail_cap: usize,
pub stderr_tail_cap: usize,
pub no_window: bool,
pub input: Option<Vec<u8>>,
}Expand description
Limits and options for run_streaming. Build one with StreamOptions::new (or
Default) and the builder methods; the struct is #[non_exhaustive], so later options do
not break callers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.timeout: Option<Duration>How long the program may run before its tree is terminated. None (the default) is no
deadline: only the child’s exit or the cancel predicate ends the call.
poll: DurationThe longest the call goes without evaluating the cancel predicate and the deadline (default 100 ms). The predicate is evaluated at least this often, however much output is flowing. Values under 1 ms behave as 1 ms.
stdout_tail_cap: usizeMost bytes of stdout kept in StreamOutput::stdout_tail: the last ones (default
64 KiB).
stderr_tail_cap: usizeMost bytes of stderr kept in StreamOutput::stderr_tail: the last ones (default
64 KiB).
no_window: boolHide the console window on Windows. The default. false leaves it visible.
input: Option<Vec<u8>>Bytes written to the child’s stdin, then EOF. None (the default) gives it a null
stdin.