DefaultEnvConfig

Type Alias DefaultEnvConfig 

Source
pub type DefaultEnvConfig<T> = EnvConfig<ArgsEnv<T>, TokioFileDescManagerEnv, LastStatusEnv, VarEnv<T, T>, TokioExecEnv, VirtualWorkingDirEnv, BuiltinEnv<T>, T, RuntimeError>;
Expand description

A default environment configuration using provided (non-atomic) implementations, and powered by tokio.

Generic over the representation of shell words, variables, function names, etc.

Aliased Type§

pub struct DefaultEnvConfig<T> {
    pub interactive: bool,
    pub args_env: ArgsEnv<T>,
    pub file_desc_manager_env: TokioFileDescManagerEnv,
    pub last_status_env: LastStatusEnv,
    pub var_env: VarEnv<T, T>,
    pub exec_env: TokioExecEnv,
    pub working_dir_env: VirtualWorkingDirEnv,
    pub builtin_env: BuiltinEnv<T>,
    pub fn_name: PhantomData<T>,
    pub fn_error: PhantomData<RuntimeError>,
}

Fields§

§interactive: bool

Specify if the environment is running in interactive mode.

§args_env: ArgsEnv<T>

An implementation of ArgumentsEnvironment and possibly SetArgumentsEnvironment.

§file_desc_manager_env: TokioFileDescManagerEnv

An implementation of FileDescManagerEnvironment.

§last_status_env: LastStatusEnv

An implementation of LastStatusEnvironment.

§var_env: VarEnv<T, T>

An implementation of VariableEnvironment, UnsetVariableEnvironment, and ExportedVariableEnvironment.

§exec_env: TokioExecEnv

An implementation of ExecutableEnvironment.

§working_dir_env: VirtualWorkingDirEnv

An implementation of WorkingDirectoryEnvironment.

§builtin_env: BuiltinEnv<T>

An implementation of BuiltinEnvironment.

§fn_name: PhantomData<T>

A marker to indicate the type used for function names.

§fn_error: PhantomData<RuntimeError>

A marker to indicate the type used for function errors.

Implementations§

Source§

impl<T> DefaultEnvConfig<T>
where T: Eq + Hash + From<String>,

Source

pub fn new() -> Result<Self>

Creates a new DefaultEnvConfig using default environment components.