enum RedirType {
In(FileDesc, RedirArg),
InDirect(FileDesc, Arg),
Out(FileDesc, RedirArg),
OutTrunc(FileDesc, RedirArg),
InOut(FileDesc, RedirArg),
}
Expand description
An individual redirect, first element is always the target file descriptor.
Variants§
In(FileDesc, RedirArg)
An input file to open and dup to fd.
InDirect(FileDesc, Arg)
Inject Arg as data into the fd.
Out(FileDesc, RedirArg)
An output file to open (append) and dup to fd.
OutTrunc(FileDesc, RedirArg)
An output file to open (create/trunc) and dup to fd.
InOut(FileDesc, RedirArg)
An input/output file to open (append) and dup to fd.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedirType
impl RefUnwindSafe for RedirType
impl Send for RedirType
impl Sync for RedirType
impl Unpin for RedirType
impl UnwindSafe for RedirType
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