#[non_exhaustive]pub enum Pipeline<'a> {
Single(Executable<'a>),
Pipe(bool, Vec<Executable<'a>>),
}Expand description
A pipeline: one or more commands connected by |.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Single(Executable<'a>)
A single command (no pipe).
Pipe(bool, Vec<Executable<'a>>)
[!] cmd1 | cmd2 | ... — bool is true if negated.
Trait Implementations§
impl<'a> Eq for Pipeline<'a>
impl<'a> StructuralPartialEq for Pipeline<'a>
Auto Trait Implementations§
impl<'a> Freeze for Pipeline<'a>
impl<'a> RefUnwindSafe for Pipeline<'a>
impl<'a> Send for Pipeline<'a>
impl<'a> Sync for Pipeline<'a>
impl<'a> Unpin for Pipeline<'a>
impl<'a> UnsafeUnpin for Pipeline<'a>
impl<'a> UnwindSafe for Pipeline<'a>
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