Struct gag::Redirect [−][src]
pub struct Redirect<F> { /* fields omitted */ }
Expand description
Redirect stderr/stdout to a file.
Implementations
impl<F> Redirect<F> where
F: AsRawFileDescriptor,
[src]
impl<F> Redirect<F> where
F: AsRawFileDescriptor,
[src]pub fn stdout(file: F) -> Result<Self, RedirectError<F>>
[src]
pub fn stdout(file: F) -> Result<Self, RedirectError<F>>
[src]Redirect stdout to file
.
pub fn stderr(file: F) -> Result<Self, RedirectError<F>>
[src]
pub fn stderr(file: F) -> Result<Self, RedirectError<F>>
[src]Redirect stderr to file
.
pub fn into_inner(self) -> F
[src]
pub fn into_inner(self) -> F
[src]Extract inner file object.
Auto Trait Implementations
impl<F> RefUnwindSafe for Redirect<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for Redirect<F> where
F: Send,
F: Send,
impl<F> Sync for Redirect<F> where
F: Sync,
F: Sync,
impl<F> Unpin for Redirect<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for Redirect<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,