pub struct FinishedChild {
pub exit: ChildExit,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
}Expand description
What: A child that ran to its end within its bounds, with what it wrote. Why: Interpreting the output is the caller’s job; this only reports it exactly.
In TS you’d write (pseudocode):
type FinishedChild = { exit: ChildExit; stdout: Uint8Array; stderr: Uint8Array };Fields§
§exit: ChildExitHow it ended.
stdout: Vec<u8>Its exact standard output.
stderr: Vec<u8>Its exact standard error.
Trait Implementations§
Source§impl Clone for FinishedChild
impl Clone for FinishedChild
Source§impl Debug for FinishedChild
impl Debug for FinishedChild
impl Eq for FinishedChild
Source§impl PartialEq for FinishedChild
impl PartialEq for FinishedChild
impl StructuralPartialEq for FinishedChild
Auto Trait Implementations§
impl Freeze for FinishedChild
impl RefUnwindSafe for FinishedChild
impl Send for FinishedChild
impl Sync for FinishedChild
impl Unpin for FinishedChild
impl UnsafeUnpin for FinishedChild
impl UnwindSafe for FinishedChild
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more