pub struct SystemEnv;Expand description
Inputs from the current process and filesystem.
Trait Implementations§
impl Copy for SystemEnv
Source§impl EnvSource for SystemEnv
impl EnvSource for SystemEnv
Source§fn var_os(&self, key: &str) -> Option<OsString>
fn var_os(&self, key: &str) -> Option<OsString>
Read a variable without losing non-Unicode path characters.
Source§fn path_exists(&self, path: &Path) -> bool
fn path_exists(&self, path: &Path) -> bool
Whether
path exists. The resolver uses it to tell an existing
installation’s data directory from one that has never been created.Source§fn temp_dir(&self) -> PathBuf
fn temp_dir(&self) -> PathBuf
The system temporary directory. It holds the last fallback location of
the daemon’s connection file (see
Dirs::connection_file_candidates).Source§fn current_dir(&self) -> Result<PathBuf>
fn current_dir(&self) -> Result<PathBuf>
The process’s current directory, which a relative path given explicitly
by the user (for example a
--subc ./conn.json argument) is joined to.Auto Trait Implementations§
impl Freeze for SystemEnv
impl RefUnwindSafe for SystemEnv
impl Send for SystemEnv
impl Sync for SystemEnv
impl Unpin for SystemEnv
impl UnsafeUnpin for SystemEnv
impl UnwindSafe for SystemEnv
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more