Struct conch_runtime::spawn::If[][src]

#[must_use = "futures do nothing unless polled"]
pub struct If<C, I, E: ?Sized> where
    I: IntoIterator,
    I::Item: Spawn<E>, 
{ /* fields omitted */ }

A future representing the execution of an if command.

Trait Implementations

impl<S, C, I, E: ?Sized> Debug for If<C, I, E> where
    C: Debug,
    I: IntoIterator<Item = S> + Debug,
    I::IntoIter: Debug,
    S: Spawn<E> + Debug,
    S::EnvFuture: Debug,
    S::Future: Debug
[src]

Formats the value using the given formatter. Read more

impl<S, C, I, E: ?Sized> EnvFuture<E> for If<C, I, E> where
    E: LastStatusEnvironment + ReportErrorEnvironment,
    C: Iterator<Item = GuardBodyPair<I>>,
    I: IntoIterator<Item = S>,
    S: Spawn<E>,
    S::Error: IsFatalError
[src]

The type of value that this future will resolved with if it is successful. Read more

The type of error that this future will resolve with if it fails in a normal fashion. Read more

Behaves identical to Future::poll when polled with a provided environment. Read more

Cancel a future and consider it as completed, thus giving it a chance to run any clean up as if it had resolved on its own. Read more

Pin an environment to this future, allowing the resulting future to be polled from anywhere without needing the caller to specify an environment. Read more

Fuse a future such that poll and cancel will never again be called once it has completed. Read more

Converts the resulting future into a boxed trait object. Read more

Auto Trait Implementations

impl<C, I, E: ?Sized> Send for If<C, I, E> where
    C: Send,
    I: Send,
    <<I as IntoIterator>::Item as Spawn<E>>::EnvFuture: Send,
    <<I as IntoIterator>::Item as Spawn<E>>::Future: Send,
    <I as IntoIterator>::IntoIter: Iterator + Send,
    <I as IntoIterator>::Item: Send

impl<C, I, E: ?Sized> Sync for If<C, I, E> where
    C: Sync,
    I: Sync,
    <<I as IntoIterator>::Item as Spawn<E>>::EnvFuture: Sync,
    <<I as IntoIterator>::Item as Spawn<E>>::Future: Sync,
    <I as IntoIterator>::IntoIter: Iterator + Sync,
    <I as IntoIterator>::Item: Sync