summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-09-26 13:48:34 +0200
committerLibravatar GitHub <noreply@github.com>2022-09-26 13:48:34 +0200
commit3c2a8b70add7139bf564313da4d2267138ae65aa (patch)
treef593283cb482f9741dea3500451fedd3a55ea3f2 /native
parent3c9af1eb31d8f5e4a6cfcc10aa41e48868f3d6eb (diff)
parentbb9236901718a534079131c0719a7d3eeedd19b5 (diff)
downloadiced-3c2a8b70add7139bf564313da4d2267138ae65aa.tar.gz
iced-3c2a8b70add7139bf564313da4d2267138ae65aa.tar.bz2
iced-3c2a8b70add7139bf564313da4d2267138ae65aa.zip
Merge pull request #1445 from clarkmoody/tweak-sysinfo
Tweak System Information
Diffstat (limited to '')
-rw-r--r--native/src/system/information.rs25
1 files changed, 16 insertions, 9 deletions
diff --git a/native/src/system/information.rs b/native/src/system/information.rs
index fa4a835b..93e7a5a4 100644
--- a/native/src/system/information.rs
+++ b/native/src/system/information.rs
@@ -1,22 +1,29 @@
/// Contains informations about the system (e.g. system name, processor, memory, graphics adapter).
#[derive(Clone, Debug)]
pub struct Information {
- /// Contains the system name.
+ /// The operating system name
pub system_name: Option<String>,
- /// Contains the kernel version.
+ /// Operating system kernel version
pub system_kernel: Option<String>,
- /// Contains the systme version.
+ /// Long operating system version
+ ///
+ /// Examples:
+ /// - MacOS 10.15 Catalina
+ /// - Windows 10 Pro
+ /// - Ubuntu 20.04 LTS (Focal Fossa)
pub system_version: Option<String>,
- /// Contains the processor brand.
+ /// Short operating system version number
+ pub system_short_version: Option<String>,
+ /// Detailed processor model information
pub cpu_brand: String,
- /// Contains the number of physical cores on the processor.
+ /// The number of physical cores on the processor
pub cpu_cores: Option<usize>,
- /// Contains the total RAM size in KB.
+ /// Total RAM size, KB
pub memory_total: u64,
- /// Contains the system used RAM size in KB.
+ /// Memory used by this process, KB
pub memory_used: Option<u64>,
- /// Contains the graphics backend.
+ /// Underlying graphics backend for rendering
pub graphics_backend: String,
- /// Contains the graphics adapter.
+ /// Model information for the active graphics adapter
pub graphics_adapter: String,
}