pub struct SpawnOptions {
pub env: BTreeMap<String, String>,
pub cwd: Option<String>,
pub stdio: Option<SpawnStdio>,
pub stdin_fd: Option<i32>,
pub stdout_fd: Option<i32>,
pub stderr_fd: Option<i32>,
pub stream_stdin: Option<bool>,
pub retain_output: bool,
}Expand description
Callback-free options for portable spawn.
Fields§
§env: BTreeMap<String, String>§cwd: Option<String>§stdio: Option<SpawnStdio>§stdin_fd: Option<i32>§stdout_fd: Option<i32>§stderr_fd: Option<i32>§stream_stdin: Option<bool>Some(false) closes stdin as soon as the process starts, so it reads EOF as with
</dev/null. Otherwise stdin stays open for write_process_stdin.
retain_output: boolRetain a bounded sequenced output replay in the sidecar.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpawnOptions
impl RefUnwindSafe for SpawnOptions
impl Send for SpawnOptions
impl Sync for SpawnOptions
impl Unpin for SpawnOptions
impl UnsafeUnpin for SpawnOptions
impl UnwindSafe for SpawnOptions
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