Struct conch_runtime::spawn::LocalRedirections [−][src]
#[must_use = "futures do nothing unless polled"]pub struct LocalRedirections<I, S, E: ?Sized, RR = RedirectRestorer<E>> where
I: Iterator,
I::Item: RedirectEval<E>,
S: Spawn<E>, { /* fields omitted */ }
A future representing the spawning of a command with some local redirections.
Trait Implementations
impl<R, I, S, E: ?Sized, RR> Debug for LocalRedirections<I, S, E, RR> where
I: Iterator<Item = R> + Debug,
R: RedirectEval<E>,
R::EvalFuture: Debug,
S: Spawn<E> + Debug,
S::EnvFuture: Debug,
RR: Debug, [src]
impl<R, I, S, E: ?Sized, RR> Debug for LocalRedirections<I, S, E, RR> where
I: Iterator<Item = R> + Debug,
R: RedirectEval<E>,
R::EvalFuture: Debug,
S: Spawn<E> + Debug,
S::EnvFuture: Debug,
RR: Debug, fn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<R, I, S, E: ?Sized, RR> EnvFuture<E> for LocalRedirections<I, S, E, RR> where
R: RedirectEval<E, Handle = E::FileHandle>,
I: Iterator<Item = R>,
S: Spawn<E>,
S::Error: From<RedirectionError> + From<R::Error>,
E: AsyncIoEnvironment + FileDescEnvironment,
E::FileHandle: Clone + From<FileDesc>,
RR: RedirectEnvRestorer<E>, [src]
impl<R, I, S, E: ?Sized, RR> EnvFuture<E> for LocalRedirections<I, S, E, RR> where
R: RedirectEval<E, Handle = E::FileHandle>,
I: Iterator<Item = R>,
S: Spawn<E>,
S::Error: From<RedirectionError> + From<R::Error>,
E: AsyncIoEnvironment + FileDescEnvironment,
E::FileHandle: Clone + From<FileDesc>,
RR: RedirectEnvRestorer<E>, type Item = 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, RR> Send for LocalRedirections<I, S, E, RR> where
I: Send,
RR: Send,
S: Send,
<S as Spawn<E>>::EnvFuture: Send,
<<I as Iterator>::Item as RedirectEval<E>>::EvalFuture: Send,
impl<I, S, E: ?Sized, RR> Send for LocalRedirections<I, S, E, RR> where
I: Send,
RR: Send,
S: Send,
<S as Spawn<E>>::EnvFuture: Send,
<<I as Iterator>::Item as RedirectEval<E>>::EvalFuture: Send, impl<I, S, E: ?Sized, RR> Sync for LocalRedirections<I, S, E, RR> where
I: Sync,
RR: Sync,
S: Sync,
<S as Spawn<E>>::EnvFuture: Sync,
<<I as Iterator>::Item as RedirectEval<E>>::EvalFuture: Sync,
impl<I, S, E: ?Sized, RR> Sync for LocalRedirections<I, S, E, RR> where
I: Sync,
RR: Sync,
S: Sync,
<S as Spawn<E>>::EnvFuture: Sync,
<<I as Iterator>::Item as RedirectEval<E>>::EvalFuture: Sync,