pub enum CaptureState {
Captured,
Incomplete {
reason: String,
},
NotCaptured {
reason: String,
},
}Expand description
Whether a module’s stderr is being captured, and if not, why not.
Typed rather than nullable so NotCaptured has to be handled rather than
defaulted past. An empty tail and an uncaptured one send an operator in
opposite directions – one says the module printed nothing before dying, the
other says nobody was listening – and rendering them alike is the defect this
module exists to fix, reproduced one layer up.
Variants§
Captured
A reader is attached, or was attached and reached clean EOF.
Incomplete
Retained entries are valid, but capture ended before clean EOF.
NotCaptured
No reader was attached. The tail says nothing about what the module wrote.
Trait Implementations§
Source§impl Clone for CaptureState
impl Clone for CaptureState
Source§impl Debug for CaptureState
impl Debug for CaptureState
impl Eq for CaptureState
Source§impl PartialEq for CaptureState
impl PartialEq for CaptureState
impl StructuralPartialEq for CaptureState
Auto Trait Implementations§
impl Freeze for CaptureState
impl RefUnwindSafe for CaptureState
impl Send for CaptureState
impl Sync for CaptureState
impl Unpin for CaptureState
impl UnsafeUnpin for CaptureState
impl UnwindSafe for CaptureState
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