aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-28 13:48:28 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-28 13:48:28 -0800
commitd6e2fa44ab9e6f7b8644b8e39260c9531b692fbb (patch)
tree4841c1b4bdc8fb43ce41ae1e55eb4f050b3c9904
parentbe more explicit in the default output (diff)
downloadx-d6e2fa44ab9e6f7b8644b8e39260c9531b692fbb.tar.gz
document the public types
-rw-r--r--src/apple_silicon/src/soc.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apple_silicon/src/soc.rs b/src/apple_silicon/src/soc.rs
index fcf3ed3..17ff323 100644
--- a/src/apple_silicon/src/soc.rs
+++ b/src/apple_silicon/src/soc.rs
@@ -4,9 +4,13 @@ use std::process::Command;
pub type Result<T> = std::result::Result<T, Error>;
+/// Information about the Silicon chip
pub struct SocInfo {
+ /// The CPU brand name string
pub cpu_brand_name: String,
+ /// Number of CPU cores
pub num_cpu_cores: u16,
+ /// Number of GPU cores
pub num_gpu_cores: u16,
}