Struct conch_runtime::spawn::Sequence [−][src]
#[must_use = "futures do nothing unless polled"]pub struct Sequence<I, E: ?Sized> where
I: Iterator,
I::Item: Spawn<E>, { /* fields omitted */ }
A future that represents the sequential execution of commands.
Commands are sequentially executed regardless of the exit status of previous commands. All non-fatal errors are reported and swallowed, however, "fatal" errors are bubbled up and the sequence terminated.
Trait Implementations
impl<S, I, E: ?Sized> Debug for Sequence<I, E> where
I: Iterator<Item = S> + Debug,
S: Spawn<E> + Debug,
S::EnvFuture: Debug,
S::Future: Debug,
[src]
impl<S, I, E: ?Sized> Debug for Sequence<I, E> where
I: Iterator<Item = S> + Debug,
S: Spawn<E> + Debug,
S::EnvFuture: Debug,
S::Future: Debug,
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S, I, E: ?Sized> EnvFuture<E> for Sequence<I, E> where
E: LastStatusEnvironment + ReportErrorEnvironment,
I: Iterator<Item = S>,
S: Spawn<E>,
S::Error: IsFatalError,
[src]
impl<S, I, E: ?Sized> EnvFuture<E> for Sequence<I, E> where
E: LastStatusEnvironment + ReportErrorEnvironment,
I: Iterator<Item = S>,
S: Spawn<E>,
S::Error: IsFatalError,
type Item = ExitResult<S::Future>
The type of value that this future will resolved with if it is successful. Read more
type Error = S::Error
The type of error that this future will resolve with if it fails in a normal fashion. Read more
fn poll(&mut self, env: &mut E) -> Poll<Self::Item, Self::Error>
[src]
fn poll(&mut self, env: &mut E) -> Poll<Self::Item, Self::Error>
Behaves identical to Future::poll
when polled with a provided environment. Read more
fn cancel(&mut self, env: &mut E)
[src]
fn cancel(&mut self, env: &mut E)
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
fn pin_env(self, env: E) -> Pinned<E, Self> where
E: Sized,
Self: Sized,
[src]
fn pin_env(self, env: E) -> Pinned<E, Self> where
E: Sized,
Self: Sized,
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
fn fuse(self) -> Fuse<Self> where
Self: Sized,
[src]
fn fuse(self) -> Fuse<Self> where
Self: Sized,
Fuse a future such that poll
and cancel
will never again be called once it has completed. Read more
fn boxed_result<'a>(self) -> BoxedResult<'a, Self> where
Self: Sized,
Self::Item: 'a + Future,
[src]
fn boxed_result<'a>(self) -> BoxedResult<'a, Self> where
Self: Sized,
Self::Item: 'a + Future,
Converts the resulting future into a boxed trait object. Read more
Auto Trait Implementations
impl<I, E: ?Sized> Send for Sequence<I, E> where
I: Send,
<<I as Iterator>::Item as Spawn<E>>::EnvFuture: Send,
<<I as Iterator>::Item as Spawn<E>>::Future: Send,
<I as Iterator>::Item: Send,
impl<I, E: ?Sized> Send for Sequence<I, E> where
I: Send,
<<I as Iterator>::Item as Spawn<E>>::EnvFuture: Send,
<<I as Iterator>::Item as Spawn<E>>::Future: Send,
<I as Iterator>::Item: Send,
impl<I, E: ?Sized> Sync for Sequence<I, E> where
I: Sync,
<<I as Iterator>::Item as Spawn<E>>::EnvFuture: Sync,
<<I as Iterator>::Item as Spawn<E>>::Future: Sync,
<I as Iterator>::Item: Sync,
impl<I, E: ?Sized> Sync for Sequence<I, E> where
I: Sync,
<<I as Iterator>::Item as Spawn<E>>::EnvFuture: Sync,
<<I as Iterator>::Item as Spawn<E>>::Future: Sync,
<I as Iterator>::Item: Sync,