pub enum InputCompletion {
Complete,
Interrupted,
SourceFailed(ExecutorError),
WriteFailed(Error),
}Available on crate feature
std only.Expand description
What happened while supplying a child’s stdin.
Variants§
Complete
The source reached EOF and all bytes were written, or input was ignored. This confirms delivery to the pipe, not application-level processing.
Interrupted
The child exited while its input feed was still pending. The source was cancelled, so unread data and upstream errors may remain unobserved.
SourceFailed(ExecutorError)
Reading the source failed. The child was terminated and reaped.
WriteFailed(Error)
Writing or closing stdin failed. Broken pipes allow the child to finish naturally so its exit diagnostics can be collected; other errors terminate it.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InputCompletion
impl !UnwindSafe for InputCompletion
impl Freeze for InputCompletion
impl Send for InputCompletion
impl Sync for InputCompletion
impl Unpin for InputCompletion
impl UnsafeUnpin for InputCompletion
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