Struct conch_runtime::spawn::For [−][src]
#[must_use = "futures do nothing unless polled"]pub struct For<I, S, E: ?Sized> where
I: Iterator,
I::Item: WordEval<E>,
S: SpawnRef<E>,
E: VariableEnvironment, { /* fields omitted */ }
A future representing the execution of a for
loop command.
Trait Implementations
impl<I, W, S, E: ?Sized> Debug for For<I, S, E> where
I: Iterator<Item = W> + Debug,
W: WordEval<E> + Debug,
W::EvalFuture: Debug,
S: SpawnRef<E> + Debug,
S::EnvFuture: Debug,
S::Future: Debug,
E: VariableEnvironment,
E::Var: Debug,
E::VarName: Debug,
[src]
impl<I, W, S, E: ?Sized> Debug for For<I, S, E> where
I: Iterator<Item = W> + Debug,
W: WordEval<E> + Debug,
W::EvalFuture: Debug,
S: SpawnRef<E> + Debug,
S::EnvFuture: Debug,
S::Future: Debug,
E: VariableEnvironment,
E::Var: Debug,
E::VarName: 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<I, W, S, E: ?Sized> EnvFuture<E> for For<I, S, E> where
I: Iterator<Item = W>,
W: WordEval<E>,
W::EvalResult: Into<E::Var>,
S: SpawnRef<E>,
S::Error: From<W::Error> + IsFatalError,
E: LastStatusEnvironment + ReportErrorEnvironment + VariableEnvironment,
E::VarName: Clone,
[src]
impl<I, W, S, E: ?Sized> EnvFuture<E> for For<I, S, E> where
I: Iterator<Item = W>,
W: WordEval<E>,
W::EvalResult: Into<E::Var>,
S: SpawnRef<E>,
S::Error: From<W::Error> + IsFatalError,
E: LastStatusEnvironment + ReportErrorEnvironment + VariableEnvironment,
E::VarName: Clone,
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, S, E: ?Sized> Send for For<I, S, E> where
I: Send,
S: Send,
<S as SpawnRef<E>>::EnvFuture: Send,
<<I as Iterator>::Item as WordEval<E>>::EvalFuture: Send,
<S as SpawnRef<E>>::Future: Send,
<E as VariableEnvironment>::Var: Send,
<E as VariableEnvironment>::VarName: Send,
impl<I, S, E: ?Sized> Send for For<I, S, E> where
I: Send,
S: Send,
<S as SpawnRef<E>>::EnvFuture: Send,
<<I as Iterator>::Item as WordEval<E>>::EvalFuture: Send,
<S as SpawnRef<E>>::Future: Send,
<E as VariableEnvironment>::Var: Send,
<E as VariableEnvironment>::VarName: Send,
impl<I, S, E: ?Sized> Sync for For<I, S, E> where
I: Sync,
S: Sync,
<S as SpawnRef<E>>::EnvFuture: Sync,
<<I as Iterator>::Item as WordEval<E>>::EvalFuture: Sync,
<S as SpawnRef<E>>::Future: Sync,
<E as VariableEnvironment>::Var: Sync,
<E as VariableEnvironment>::VarName: Sync,
impl<I, S, E: ?Sized> Sync for For<I, S, E> where
I: Sync,
S: Sync,
<S as SpawnRef<E>>::EnvFuture: Sync,
<<I as Iterator>::Item as WordEval<E>>::EvalFuture: Sync,
<S as SpawnRef<E>>::Future: Sync,
<E as VariableEnvironment>::Var: Sync,
<E as VariableEnvironment>::VarName: Sync,