pub enum OutputSource {
Stdout,
Stderr,
Combined,
}Expand description
Source of output data.
Execution only ever produces Combined. The
executor merges a child’s stdout and stderr into one stream before any chunk
is built, so a consumer matching on this will never see the other two from
this crate — do not write a branch that depends on telling them apart, and do
not read the presence of these variants as a promise that separation is
available. The variants and OutputChunk::stdout exist because separating
the two streams is a standing proposal, not because it happens.
They are kept rather than deleted so the day that proposal lands does not also change this type’s shape. That is a judgement, and it comes with the cost of this paragraph: a half-built structure reads as a working one unless it says otherwise.
Variants§
Stdout
Standard output. Not produced by this crate — see the type’s note.
Stderr
Standard error. Not produced by this crate — see the type’s note.
Combined
Combined output. The only variant execution produces.
Trait Implementations§
Source§impl Clone for OutputSource
impl Clone for OutputSource
Source§fn clone(&self) -> OutputSource
fn clone(&self) -> OutputSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more