[][src]Trait shh::Divert

pub trait Divert<D> {
    fn divert_std_stream(write_file: &File) -> Result<()>;
fn reinstate_std_stream(original_fdandle: RawFd) -> Result<()>; }

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.

Loading content...

Implementors

Loading content...