pub enum Event {
Output(Vec<u8>),
Input,
Exit(ExitStatus),
}Expand description
Something a running child did.
Variants§
Output(Vec<u8>)
It wrote to stdout or stderr.
Input
It is waiting to read stdin. Give it data with Child::write_stdin,
or end of file with Child::close_stdin, before the next
Child::next_event. Giving it neither counts as end of file.
Exit(ExitStatus)
It finished. Any last output came first, as an Output event.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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