Type Definition conch_runtime::env::DefaultEnv [] [src]

type DefaultEnv<T> = Env<ArgsEnv<T>, PlatformSpecificAsyncIoEnv, FileDescEnv<Rc<FileDesc>>, LastStatusEnv, VarEnv<T, T>, ExecEnv, VirtualWorkingDirEnv, T, RuntimeError>;

A default environment configured with provided (non-atomic) implementations.

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

// Can be instantiated as follows
let lp = tokio_core::reactor::Core::new().unwrap();

// Fallback to using one thread per CPU
let env1 = DefaultEnv::<Rc<String>>::new(lp.remote(), None);

// Fallback to specific number of threads
let env2 = DefaultEnv::<Rc<String>>::new(lp.remote(), Some(2));

Methods

impl<T> DefaultEnv<T> where
    T: StringWrapper
[src]

[src]

Creates a new default environment.

See the definition of DefaultEnvConfig for what configuration will be used.