Struct conch_runtime::spawn::GuardBodyPair [−][src]
pub struct GuardBodyPair<T> { pub guard: T, pub body: T, }
A grouping of guard and body commands.
Fields
guard: T
The guard commands, which if successful, should lead to the execution of the body commands.
body: T
The body commands to execute if the guard is successful.
Trait Implementations
impl<T> From<GuardBodyPair<T>> for GuardBodyPair<Vec<T>>
[src]
impl<T> From<GuardBodyPair<T>> for GuardBodyPair<Vec<T>>
fn from(guard_body_pair: GuardBodyPair<T>) -> Self
[src]
fn from(guard_body_pair: GuardBodyPair<T>) -> Self
Performs the conversion.
impl<T: Debug> Debug for GuardBodyPair<T>
[src]
impl<T: Debug> Debug for GuardBodyPair<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for GuardBodyPair<T>
[src]
impl<T: PartialEq> PartialEq for GuardBodyPair<T>
fn eq(&self, other: &GuardBodyPair<T>) -> bool
[src]
fn eq(&self, other: &GuardBodyPair<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GuardBodyPair<T>) -> bool
[src]
fn ne(&self, other: &GuardBodyPair<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for GuardBodyPair<T>
[src]
impl<T: Eq> Eq for GuardBodyPair<T>
impl<T: Clone> Clone for GuardBodyPair<T>
[src]
impl<T: Clone> Clone for GuardBodyPair<T>
fn clone(&self) -> GuardBodyPair<T>
[src]
fn clone(&self) -> GuardBodyPair<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
Auto Trait Implementations
impl<T> Send for GuardBodyPair<T> where
T: Send,
impl<T> Send for GuardBodyPair<T> where
T: Send,
impl<T> Sync for GuardBodyPair<T> where
T: Sync,
impl<T> Sync for GuardBodyPair<T> where
T: Sync,