pub struct Pipeline {
pub commands: Vec<Rc<Command>>,
pub negation: bool,
}Expand description
Commands separated by |
Fields§
§commands: Vec<Rc<Command>>Elements of the pipeline
A valid pipeline must have at least one command.
The commands are contained in Rc to allow executing them
asynchronously without cloning them.
negation: boolWhether the pipeline begins with a !
Trait Implementations§
Source§impl FromStr for Pipeline
Converts a string to a pipeline.
impl FromStr for Pipeline
Converts a string to a pipeline.
impl Eq for Pipeline
impl StructuralPartialEq for Pipeline
Auto Trait Implementations§
impl Freeze for Pipeline
impl !RefUnwindSafe for Pipeline
impl !Send for Pipeline
impl !Sync for Pipeline
impl Unpin for Pipeline
impl !UnwindSafe for Pipeline
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more