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]
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, 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, 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]
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>, 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]
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<R, V, W, IV, IW, E: ?Sized> Send for SimpleCommand<R, V, W, IV, IW, E> where
IV: Send,
IW: Send,
R: Send,
V: Send,
W: Send,
<E as SetArgumentsEnvironment>::Args: Send,
<<E as FunctionEnvironment>::Fn as Spawn<E>>::EnvFuture: Send,
<R as RedirectEval<E>>::EvalFuture: Send,
<W as WordEval<E>>::EvalFuture: Send,
<W as WordEval<E>>::EvalResult: Send,
<E as FileDescEnvironment>::FileHandle: Send,
<E as FunctionEnvironment>::Fn: Send,
<E as VariableEnvironment>::Var: Send,
<E as VariableEnvironment>::VarName: Send,
impl<R, V, W, IV, IW, E: ?Sized> Send for SimpleCommand<R, V, W, IV, IW, E> where
IV: Send,
IW: Send,
R: Send,
V: Send,
W: Send,
<E as SetArgumentsEnvironment>::Args: Send,
<<E as FunctionEnvironment>::Fn as Spawn<E>>::EnvFuture: Send,
<R as RedirectEval<E>>::EvalFuture: Send,
<W as WordEval<E>>::EvalFuture: Send,
<W as WordEval<E>>::EvalResult: Send,
<E as FileDescEnvironment>::FileHandle: Send,
<E as FunctionEnvironment>::Fn: Send,
<E as VariableEnvironment>::Var: Send,
<E as VariableEnvironment>::VarName: Send, impl<R, V, W, IV, IW, E: ?Sized> Sync for SimpleCommand<R, V, W, IV, IW, E> where
IV: Sync,
IW: Sync,
R: Sync,
V: Sync,
W: Sync,
<E as SetArgumentsEnvironment>::Args: Sync,
<<E as FunctionEnvironment>::Fn as Spawn<E>>::EnvFuture: Sync,
<R as RedirectEval<E>>::EvalFuture: Sync,
<W as WordEval<E>>::EvalFuture: Sync,
<W as WordEval<E>>::EvalResult: Sync,
<E as FileDescEnvironment>::FileHandle: Sync,
<E as FunctionEnvironment>::Fn: Sync,
<E as VariableEnvironment>::Var: Sync,
<E as VariableEnvironment>::VarName: Sync,
impl<R, V, W, IV, IW, E: ?Sized> Sync for SimpleCommand<R, V, W, IV, IW, E> where
IV: Sync,
IW: Sync,
R: Sync,
V: Sync,
W: Sync,
<E as SetArgumentsEnvironment>::Args: Sync,
<<E as FunctionEnvironment>::Fn as Spawn<E>>::EnvFuture: Sync,
<R as RedirectEval<E>>::EvalFuture: Sync,
<W as WordEval<E>>::EvalFuture: Sync,
<W as WordEval<E>>::EvalResult: Sync,
<E as FileDescEnvironment>::FileHandle: Sync,
<E as FunctionEnvironment>::Fn: Sync,
<E as VariableEnvironment>::Var: Sync,
<E as VariableEnvironment>::VarName: Sync,