pub enum ListableCommand<T> {
Pipe(bool, Vec<T>),
Single(T),
}
Expand description
Commands that can be used within an and/or list.
Variants§
Pipe(bool, Vec<T>)
A chain of concurrent commands where the standard output of the
previous becomes the standard input of the next, e.g.
[!] foo | bar | baz
.
The bool indicates if a logical negation of the last command’s status should be returned.
Single(T)
A single command not part of a pipeline.
Trait Implementations§
Source§impl<T: Clone> Clone for ListableCommand<T>
impl<T: Clone> Clone for ListableCommand<T>
Source§fn clone(&self) -> ListableCommand<T>
fn clone(&self) -> ListableCommand<T>
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<T: Debug> Debug for ListableCommand<T>
impl<T: Debug> Debug for ListableCommand<T>
Source§impl<T: PartialEq> PartialEq for ListableCommand<T>
impl<T: PartialEq> PartialEq for ListableCommand<T>
impl<T: Eq> Eq for ListableCommand<T>
impl<T> StructuralPartialEq for ListableCommand<T>
Auto Trait Implementations§
impl<T> Freeze for ListableCommand<T>where
T: Freeze,
impl<T> RefUnwindSafe for ListableCommand<T>where
T: RefUnwindSafe,
impl<T> Send for ListableCommand<T>where
T: Send,
impl<T> Sync for ListableCommand<T>where
T: Sync,
impl<T> Unpin for ListableCommand<T>where
T: Unpin,
impl<T> UnwindSafe for ListableCommand<T>where
T: UnwindSafe,
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