[−][src]Trait shh::Divert
Trait which defines functions that divert and reinstate streams for std devices.
Required methods
fn divert_std_stream(write_file: &File) -> Result<()>
Divert from the device into the write_file
's handle/fd;
fn reinstate_std_stream(original_fdandle: RawFd) -> Result<()>
Reinstate the std device to output. Gives the original handle/fd for use.