pub struct SystemInfo {
Show 14 fields pub os_name: String, pub kernel_version: String, pub os_version: String, pub hostname: String, pub distribution: String, pub memory: u64, pub processor: Processor, pub total_processors: usize, pub graphics: Vec<GraphicCard>, pub disks: Vec<Disk>, pub cameras: Vec<Camera>, pub nvidia: Option<NvidiaInfo>, pub vaapi: bool, pub model: Option<String>,
}
Expand description

Summary of the system

Fields

os_name: String

Operating system name

kernel_version: String

Running kernel version

os_version: String

Operating system version

hostname: String

System hostname

distribution: String

Distribution id like ubuntu, neon, raspbian…

memory: u64

Total memory of the machine

processor: Processor

Microprocessor description

total_processors: usize

Total amount of processors

graphics: Vec<GraphicCard>

List of graphic cards

disks: Vec<Disk>

List of available disks

cameras: Vec<Camera>

List of available cameras

nvidia: Option<NvidiaInfo>

Nvidia driver info

vaapi: bool

If the machine supports vaapi

model: Option<String>

Machine model. Some machines has special models like rpi

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. 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.