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

type DefaultEnv<T> = AtomicEnv<ArgsEnv<T>, PlatformSpecificAsyncIoEnv, FileDescEnv<Arc<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::<Arc<String>>::new_atomic(lp.remote(), None);

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

Methods

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

[src]

Creates a new default environment.

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