pub struct Redirect {
pub fd: Option<i32>,
pub kind: RedirectKind,
pub target: Word,
}Expand description
I/O redirection.
Fields§
§fd: Option<i32>File descriptor (default: 1 for output, 0 for input)
kind: RedirectKindType of redirection
target: WordTarget (file, fd, or heredoc content)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Redirect
impl RefUnwindSafe for Redirect
impl Send for Redirect
impl Sync for Redirect
impl Unpin for Redirect
impl UnsafeUnpin for Redirect
impl UnwindSafe for Redirect
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