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]
fn new(remote: Remote) -> Self
[src]
Construct a new environment with a Remote
to a tokio
event loop.
Trait Implementations
impl Clone for ExecEnv
[src]
fn clone(&self) -> ExecEnv
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl SubEnvironment for ExecEnv
[src]
fn sub_env(&self) -> Self
[src]
Create 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 ExecutableEnvironment for ExecEnv
[src]
type 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]
&mut self,
data: ExecutableData
) -> Result<Self::Future, CommandError>
Attempt to spawn the executable command.