Struct mycon::Environment[][src]

pub struct Environment<'env> { /* fields omitted */ }

Tracks information on how the program interacts with its environment.

An Environment keeps track of where input should be read, where output should be written, what files the program may access and how to locate them, and how to react when it tries to execute a shell command.

This API will soon be overhauled to provide a cleaner and more expressive interface.

Methods

impl<'env> Environment<'env>
[src]

Creates a new Environment referencing the standard input and output.

The Environment will give the program full access to the file system and allow it to execute shell commands.

Sets the input stream of the Environment.

Sets the output stream of the Environment.

Sets the FileView of the Environment.

Sets the ExecAction of the Environment.

Auto Trait Implementations

impl<'env> !Send for Environment<'env>

impl<'env> !Sync for Environment<'env>