enum RedirArg {
Path(Arg),
Fd(Arg),
InternalFd(FileDesc),
}
Expand description
An argument for a redirect (the source).
Variants§
Path(Arg)
Arg should resolve to a file path.
Fd(Arg)
Arg should resolve to file descriptor (positive integer or ‘-’ to close).
InternalFd(FileDesc)
A file descriptor created and managed by the shell (for instance for pipes).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedirArg
impl RefUnwindSafe for RedirArg
impl Send for RedirArg
impl Sync for RedirArg
impl Unpin for RedirArg
impl UnwindSafe for RedirArg
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