pub struct Environment(/* private fields */);Expand description
The variables a process was started with, by name.
The command line has a shell’s. An app the system started has launchd’s, which name the
home and the login and little else, unless somebody set more with launchctl setenv;
whatever is there is read the way the command line reads it.
Implementations§
Source§impl Environment
impl Environment
Sourcepub fn of_this_process() -> Environment
pub fn of_this_process() -> Environment
This process’s own.
Sourcepub fn pitboard_home(&self) -> PathBuf
pub fn pitboard_home(&self) -> PathBuf
Pitboard’s own directory: PITBOARD_HOME, or the system’s default for
Environment::home, .pitboard there on macOS and Linux. The path as the
environment gives it, with any ., .. or trailing / it holds.
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§impl Debug for Environment
impl Debug for Environment
Source§impl Default for Environment
impl Default for Environment
impl Eq for Environment
Source§impl<K: Into<OsString>, V: Into<OsString>> FromIterator<(K, V)> for Environment
impl<K: Into<OsString>, V: Into<OsString>> FromIterator<(K, V)> for Environment
Source§fn from_iter<I: IntoIterator<Item = (K, V)>>(pairs: I) -> Environment
fn from_iter<I: IntoIterator<Item = (K, V)>>(pairs: I) -> Environment
Creates a value from an iterator. Read more
Source§impl PartialEq for Environment
impl PartialEq for Environment
impl StructuralPartialEq for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnsafeUnpin for Environment
impl UnwindSafe for Environment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.