pub enum Redirection {
}Expand description
Represents a single redirection operation
Variants§
Input(String)
Input from file: < file or N< file
Output(String)
Output to file: > file or N> file
OutputClobber(String)
Output to file with noclobber override: >| file
Append(String)
Append to file: >> file or N>> file
FdInput(i32, String)
Input from file with explicit fd: N< file
FdOutput(i32, String)
Output to file with explicit fd: N> file
FdOutputClobber(i32, String)
Output to file with explicit fd and noclobber override: N>| file
FdAppend(i32, String)
Append to file with explicit fd: N>> file
FdDuplicate(i32, i32)
Duplicate file descriptor: N>&M or N<&M
FdClose(i32)
Close file descriptor: N>&- or N<&-
FdInputOutput(i32, String)
Open file for read/write: N<> file
HereDoc(String, String)
Here-document: << EOF … EOF
HereString(String)
Here-string: <<< “string”
Trait Implementations§
Source§impl Clone for Redirection
impl Clone for Redirection
Source§fn clone(&self) -> Redirection
fn clone(&self) -> Redirection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Redirection
impl Debug for Redirection
Source§impl PartialEq for Redirection
impl PartialEq for Redirection
impl Eq for Redirection
impl StructuralPartialEq for Redirection
Auto Trait Implementations§
impl Freeze for Redirection
impl RefUnwindSafe for Redirection
impl Send for Redirection
impl Sync for Redirection
impl Unpin for Redirection
impl UnwindSafe for Redirection
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