summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Richard <richardsoncusto@gmail.com>2022-04-14 02:11:43 -0300
committerLibravatar Richard <richardsoncusto@gmail.com>2022-04-26 18:59:08 -0300
commitc9ea1f11dec96df04ade463ea9f33062a85c9219 (patch)
treefcdf29f469d18dfdc3b3ab40d7e6b2491a416194 /native
parent5bfe887e3d4acb2c48cca22c73aa52f4cc4856ad (diff)
downloadiced-c9ea1f11dec96df04ade463ea9f33062a85c9219.tar.gz
iced-c9ea1f11dec96df04ade463ea9f33062a85c9219.tar.bz2
iced-c9ea1f11dec96df04ade463ea9f33062a85c9219.zip
Add memory usage to `Information` struct
Diffstat (limited to 'native')
-rw-r--r--native/src/system/information.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/native/src/system/information.rs b/native/src/system/information.rs
index bf0b100c..fa4a835b 100644
--- a/native/src/system/information.rs
+++ b/native/src/system/information.rs
@@ -1,5 +1,5 @@
/// Contains informations about the system (e.g. system name, processor, memory, graphics adapter).
-#[derive(Debug)]
+#[derive(Clone, Debug)]
pub struct Information {
/// Contains the system name.
pub system_name: Option<String>,
@@ -13,6 +13,8 @@ pub struct Information {
pub cpu_cores: Option<usize>,
/// Contains the total RAM size in KB.
pub memory_total: u64,
+ /// Contains the system used RAM size in KB.
+ pub memory_used: Option<u64>,
/// Contains the graphics backend.
pub graphics_backend: String,
/// Contains the graphics adapter.