Struct conch_runtime::env::ExecEnv [−][src]
pub struct ExecEnv { /* fields omitted */ }An ExecutableEnvironment implementation that uses a tokio event loop
to monitor when child processes have exited.
Note: Any futures/adapters returned by this implementation should be run on the same event loop that was associated with this environment, otherwise no progress may occur unless the associated event loop is turned externally.
Methods
impl ExecEnv[src]
impl ExecEnvpub fn new(remote: Remote) -> Self[src]
pub fn new(remote: Remote) -> SelfConstruct a new environment with a Remote to a tokio event loop.
Trait Implementations
impl Clone for ExecEnv[src]
impl Clone for ExecEnvfn clone(&self) -> ExecEnv[src]
fn clone(&self) -> ExecEnvReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl SubEnvironment for ExecEnv[src]
impl SubEnvironment for ExecEnvfn sub_env(&self) -> Self[src]
fn sub_env(&self) -> SelfCreate a new sub-environment, which starts out idential to its parent, but any changes on the new environment will not be reflected on the parent. Read more
impl Debug for ExecEnv[src]
impl Debug for ExecEnvfn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl ExecutableEnvironment for ExecEnv[src]
impl ExecutableEnvironment for ExecEnvtype Future = Child
A future which will resolve to the executable's exit status.
fn spawn_executable(
&mut self,
data: ExecutableData
) -> Result<Self::Future, CommandError>[src]
fn spawn_executable(
&mut self,
data: ExecutableData
) -> Result<Self::Future, CommandError>Attempt to spawn the executable command.