Struct wallswitch::Environment
source · pub struct Environment<'a> {
pub desktop: Cow<'a, str>,
pub home: Cow<'a, str>,
pub pkg_name: Cow<'a, str>,
}Expand description
Environment variables
Fields§
§desktop: Cow<'a, str>§home: Cow<'a, str>§pkg_name: Cow<'a, str>Implementations§
source§impl<'a> Environment<'a>
impl<'a> Environment<'a>
pub fn new() -> Environment<'static>
pub fn get_desktop(&self) -> &str
pub fn get_home(&self) -> &str
pub fn get_pkg_name(&self) -> &str
Auto Trait Implementations§
impl<'a> Freeze for Environment<'a>
impl<'a> RefUnwindSafe for Environment<'a>
impl<'a> Send for Environment<'a>
impl<'a> Sync for Environment<'a>
impl<'a> Unpin for Environment<'a>
impl<'a> UnwindSafe for Environment<'a>
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