Enum conch_runtime::spawn::AndOr [−][src]
pub enum AndOr<T> {
And(T),
Or(T),
}A command which conditionally runs based on the exit status of the previous command.
Variants
And(T)A compound command which should run only if the previously run command succeeded.
Or(T)A compound command which should run only if the previously run command failed.
Trait Implementations
impl<T: Debug> Debug for AndOr<T>[src]
impl<T: Debug> Debug for AndOr<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for AndOr<T>[src]
impl<T: PartialEq> PartialEq for AndOr<T>fn eq(&self, other: &AndOr<T>) -> bool[src]
fn eq(&self, other: &AndOr<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &AndOr<T>) -> bool[src]
fn ne(&self, other: &AndOr<T>) -> boolThis method tests for !=.
impl<T: Eq> Eq for AndOr<T>[src]
impl<T: Eq> Eq for AndOr<T>impl<T: Clone> Clone for AndOr<T>[src]
impl<T: Clone> Clone for AndOr<T>fn clone(&self) -> AndOr<T>[src]
fn clone(&self) -> AndOr<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T> From<AndOr<T>> for AndOr<T>[src]
impl<T> From<AndOr<T>> for AndOr<T>