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

A compound command which should run only if the previously run command succeeded.

A compound command which should run only if the previously run command failed.

Trait Implementations

impl<T: Debug> Debug for AndOr<T>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for AndOr<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for AndOr<T>
[src]

impl<T: Clone> Clone for AndOr<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> From<AndOr<T>> for AndOr<T>
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for AndOr<T> where
    T: Send

impl<T> Sync for AndOr<T> where
    T: Sync