[−][src]Function shh::stderr
pub fn stderr() -> Result<ShhStderr>
Silence and redirect the stderr stream.
Shh
implements io::Read
, with all captured output able to be read back out.
Example
eprintln!("you will see this"); let shh = shh::stderr().unwrap(); eprintln!("but not this"); drop(shh); eprintln!("and this");