Struct conch_runtime::spawn::SimpleCommand
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct SimpleCommand<R, V, W, IV, IW, E: ?Sized> where
R: RedirectEval<E>,
V: Hash + Eq,
W: WordEval<E>,
E: ExportedVariableEnvironment + FileDescEnvironment + FunctionEnvironment + SetArgumentsEnvironment,
E::Fn: Spawn<E>, { /* fields omitted */ }
A future representing the spawning of a simple or regular command.
Trait Implementations
impl<R, V, W, IV, IW, S, E: ?Sized> Debug for SimpleCommand<R, V, W, IV, IW, E> where
R: RedirectEval<E>,
R::EvalFuture: Debug,
V: Hash + Eq + Debug,
W: WordEval<E>,
W::EvalFuture: Debug,
W::EvalResult: Debug,
IV: Debug,
IW: Debug,
S: Spawn<E> + Debug,
S::EnvFuture: Debug,
E: ExportedVariableEnvironment + FileDescEnvironment + FunctionEnvironment<Fn = S> + SetArgumentsEnvironment,
E::Args: Debug,
E::FileHandle: Debug,
E::VarName: Debug,
E::Var: Debug, [src]
R: RedirectEval<E>,
R::EvalFuture: Debug,
V: Hash + Eq + Debug,
W: WordEval<E>,
W::EvalFuture: Debug,
W::EvalResult: Debug,
IV: Debug,
IW: Debug,
S: Spawn<E> + Debug,
S::EnvFuture: Debug,
E: ExportedVariableEnvironment + FileDescEnvironment + FunctionEnvironment<Fn = S> + SetArgumentsEnvironment,
E::Args: Debug,
E::FileHandle: Debug,
E::VarName: Debug,
E::Var: Debug,
impl<R, V, W, IV, IW, E: ?Sized, S> EnvFuture<E> for SimpleCommand<R, V, W, IV, IW, E> where
IV: Iterator<Item = RedirectOrVarAssig<R, V, W>>,
IW: Iterator<Item = RedirectOrCmdWord<R, W>>,
R: RedirectEval<E, Handle = E::FileHandle>,
R::Error: From<RedirectionError>,
V: Hash + Eq + Borrow<String>,
W: WordEval<E>,
S: Clone + Spawn<E>,
S::Error: From<CommandError> + From<RedirectionError> + From<R::Error> + From<W::Error>,
E: AsyncIoEnvironment + ExecutableEnvironment + ExportedVariableEnvironment + FileDescEnvironment + FunctionEnvironment<Fn = S> + SetArgumentsEnvironment + UnsetVariableEnvironment + WorkingDirectoryEnvironment,
E::Arg: From<W::EvalResult>,
E::Args: From<Vec<E::Arg>>,
E::FileHandle: FileDescWrapper,
E::FnName: From<W::EvalResult>,
E::VarName: Borrow<String> + Clone + From<V>,
E::Var: Borrow<String> + Clone + From<W::EvalResult>, [src]
IV: Iterator<Item = RedirectOrVarAssig<R, V, W>>,
IW: Iterator<Item = RedirectOrCmdWord<R, W>>,
R: RedirectEval<E, Handle = E::FileHandle>,
R::Error: From<RedirectionError>,
V: Hash + Eq + Borrow<String>,
W: WordEval<E>,
S: Clone + Spawn<E>,
S::Error: From<CommandError> + From<RedirectionError> + From<R::Error> + From<W::Error>,
E: AsyncIoEnvironment + ExecutableEnvironment + ExportedVariableEnvironment + FileDescEnvironment + FunctionEnvironment<Fn = S> + SetArgumentsEnvironment + UnsetVariableEnvironment + WorkingDirectoryEnvironment,
E::Arg: From<W::EvalResult>,
E::Args: From<Vec<E::Arg>>,
E::FileHandle: FileDescWrapper,
E::FnName: From<W::EvalResult>,
E::VarName: Borrow<String> + Clone + From<V>,
E::Var: Borrow<String> + Clone + From<W::EvalResult>,
type Item = ExitResult<SpawnedSimpleCommand<E::Future, 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]
Behaves identical to Future::poll when polled with a provided environment. Read more
fn cancel(&mut self, env: &mut E)[src]
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]
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]
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]
Self: Sized,
Self::Item: 'a + Future,
Converts the resulting future into a boxed trait object. Read more