pub struct Redirect<F> { /* private fields */ }Expand description
Redirect stderr/stdout to a file.
Implementations§
Source§impl<F> Redirect<F>where
F: AsRawFileDescriptor,
impl<F> Redirect<F>where
F: AsRawFileDescriptor,
Sourcepub fn stdout(file: F) -> Result<Self, RedirectError<F>>
pub fn stdout(file: F) -> Result<Self, RedirectError<F>>
Redirect stdout to file.
Sourcepub fn stderr(file: F) -> Result<Self, RedirectError<F>>
pub fn stderr(file: F) -> Result<Self, RedirectError<F>>
Redirect stderr to file.
Sourcepub fn into_inner(self) -> F
pub fn into_inner(self) -> F
Extract inner file object.
Auto Trait Implementations§
impl<F> Freeze for Redirect<F>where
F: Freeze,
impl<F> RefUnwindSafe for Redirect<F>where
F: RefUnwindSafe,
impl<F> Send for Redirect<F>where
F: Send,
impl<F> Sync for Redirect<F>where
F: Sync,
impl<F> Unpin for Redirect<F>where
F: Unpin,
impl<F> UnwindSafe for Redirect<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more