pub struct Process {
pub args: Vec<OsString>,
pub env: Env,
pub cwd: Result<PathBuf, String>,
pub host: HostOs,
pub temp: PathBuf,
pub stdout: Box<dyn Write>,
pub stdout_is_terminal: bool,
pub stderr: Box<dyn Write>,
pub stderr_is_terminal: bool,
}Expand description
What only the process has, collected by the binary and handed in as
values: no library reads the process itself (docs/en/specs/ architecture.md, “Dependencies between crates”).
Fields§
§args: Vec<OsString>The command line, the program’s name first.
env: EnvThe environment variables.
cwd: Result<PathBuf, String>The current directory, or why it cannot be read. Only a command that
needs it reports the reason, so --help works without one.
host: HostOsThe operating system cuno runs on.
temp: PathBufThe temporary directory.
stdout: Box<dyn Write>Standard output: help, the version and the usage. Any writer, so a test can read what was written.
stdout_is_terminal: boolWhether standard output is a terminal.
stderr: Box<dyn Write>Standard error: everything else cuno prints.
stderr_is_terminal: boolWhether standard error is a terminal.
Auto Trait Implementations§
impl !RefUnwindSafe for Process
impl !Send for Process
impl !Sync for Process
impl !UnwindSafe for Process
impl Forget for Process
impl Freeze for Process
impl Move for Process
impl Unpin for Process
impl UnsafeUnpin for Process
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