Struct gag::Redirect
[−]
[src]
pub struct Redirect<F> { /* fields omitted */ }
Redirect stderr/stdout to a file.
Methods
impl<F> Redirect<F> where
F: AsRawFd,
[src]
F: AsRawFd,
fn stdout(file: F) -> Result<Self, RedirectError<F>>
Redirect stdout to file
.
fn stderr(file: F) -> Result<Self, RedirectError<F>>
Redirect stderr to file
.
fn into_inner(self) -> F
Extract inner file object.