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