Struct io_providers::env::Virtual
[−]
[src]
pub struct Virtual { /* fields omitted */ }
Provides access to a virtual environment, which can be configured independently from the local system.
Methods
impl Virtual
[src]
fn new() -> Virtual
Creates a new virtual environment.
fn set_args(&mut self, args: Vec<String>)
Sets the arguments.
Trait Implementations
impl Provider for Virtual
[src]
fn args(&self) -> Vec<String>
Returns the arguments which this program was started with (normally passed via the command line). Read more
fn current_dir(&self) -> Result<PathBuf>
Returns the current working directory as a PathBuf
. Read more
fn set_current_dir<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
Changes the current working directory to the specified path, returning whether the change was completed successfully or not. Read more