Struct desktop::Desktop

source ·
pub struct Desktop { /* private fields */ }
Expand description

The main struct of the library, contains the OS information

Implementations

Returns a Desktop struct containing your machine info

Retrieves the name of the OS

Retrieves the architecture of the OS

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.