Struct io_providers::env::Local
[−]
[src]
pub struct Local;
Provides access to the local environment (e.g. what the corresponding std::env
functions
would access).
Methods
impl Local
[src]
Trait Implementations
impl Provider for Local
[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