pub enum StderrCaptureState {
Captured,
Incomplete {
reason: String,
},
NotCaptured {
reason: String,
},
Unknown {
tag: String,
body: OrderedJsonObject,
},
}Expand description
Whether stderr is being captured for a module, and if not, why not.
A typed state rather than an empty-tail convention. “The module printed
nothing before dying” and “nobody was capturing” send an operator in opposite
directions, and rendering them alike is the defect this op exists to fix –
the same shape as a detail - that means both no-detail and never-probed.
Variants§
Captured
A reader is attached, or was attached and saw clean EOF. An empty
entries under this state means the module genuinely wrote nothing.
Incomplete
Retained entries are valid, but the stderr reader ended before clean EOF.
NotCaptured
No reader was attached. entries says nothing about what the module wrote.
Unknown
Future discriminator. body retains the complete ordered object; tag
is its decoded discriminator projection.
Trait Implementations§
Source§impl Clone for StderrCaptureState
impl Clone for StderrCaptureState
Source§fn clone(&self) -> StderrCaptureState
fn clone(&self) -> StderrCaptureState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more