pub trait Capture: Sized {
// Required methods
fn capture() -> Result<Self, Error>;
fn restore(&mut self);
}
Expand description
Common trait to capture stdio and then restore
You should use Capture::capture to begin intercept and restore it via Capture::restore or Drop.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.