pub struct Output {
pub status: ExitStatus,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
}Expand description
完成的进程的输出。
Command 的 output 方法或 Child 进程的 wait_with_output 方法在结果中返回该值。
Fields§
§status: ExitStatus进程的状态 (退出代码)。
stdout: Vec<u8>进程写入 stdout 的数据。
stderr: Vec<u8>进程写入 stderr 的数据。
Trait Implementations§
impl Eq for Output
impl StructuralEq for Output
impl StructuralPartialEq for Output
Auto Trait Implementations§
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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
从拥有的值中借用。 Read more