pub struct InstalledStreamRedirect {
pub stdout_file: Option<PathBuf>,
pub stderr_file: Option<PathBuf>,
/* private fields */
}Expand description
Guard for installed stream redirection.
Keep this value alive for as long as stdout/stderr should stay redirected. On drop it restores the original process fds.
Fields§
§stdout_file: Option<PathBuf>File receiving stdout bytes, if stdout redirection is enabled.
stderr_file: Option<PathBuf>File receiving stderr bytes, if stderr redirection is enabled.
Trait Implementations§
Source§impl Debug for InstalledStreamRedirect
Available on Unix only.
impl Debug for InstalledStreamRedirect
Available on Unix only.
Source§impl Drop for InstalledStreamRedirect
Available on Unix only.
impl Drop for InstalledStreamRedirect
Available on Unix only.
Auto Trait Implementations§
impl Freeze for InstalledStreamRedirect
impl RefUnwindSafe for InstalledStreamRedirect
impl Send for InstalledStreamRedirect
impl Sync for InstalledStreamRedirect
impl Unpin for InstalledStreamRedirect
impl UnsafeUnpin for InstalledStreamRedirect
impl UnwindSafe for InstalledStreamRedirect
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