pub struct Desktop { /* private fields */ }
Expand description
The main struct of the library, contains the OS information
Implementations
sourceimpl Desktop
impl Desktop
sourcepub fn environment(&self) -> &'static str
pub fn environment(&self) -> &'static str
Retrieves the desktop environment of the OS (Linux only)
Otherwise, if it’s not Linux or it was not able to detect the desktop environment (option_env!
returns Err
),
it will return the name of the OS
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Desktop
impl Send for Desktop
impl Sync for Desktop
impl Unpin for Desktop
impl UnwindSafe for Desktop
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more