Trait conch_runtime::eval::RedirectEval [] [src]

pub trait RedirectEval<E: ?Sized> {
    type Handle;
    type Error;
    type EvalFuture: EnvFuture<E, Item = RedirectAction<Self::Handle>, Error = Self::Error>;
    fn eval(self, env: &E) -> Self::EvalFuture;
}

A trait for evaluating file descriptor redirections.

Associated Types

The type of handle that should be added to the environment.

An error that can arise during evaluation.

A future which will carry out the evaluation (but will not update the environment with the result).

Required Methods

Evaluates a redirection path and opens the appropriate redirect.

Newly opened/closed/duplicated/heredoc file descriptors are NOT updated in the environment, and thus it is up to the caller to update the environment as appropriate.

Implementors