How to fix components list being empty? #1240
Answered
by
GuillaumeGomez
adriancalavie
asked this question in
Q&A
-
So, I followed the docs, and my components list is empty. Why might that be? I'm on windows btw. Codeuse sysinfo::{Components, System};
fn main() {
let mut sys = System::new_all();
sys.refresh_all();
// Components:
let components = Components::new_with_refreshed_list();
println!("{:?}", components.list());
} Output |
Beta Was this translation helpful? Give feedback.
Answered by
GuillaumeGomez
Apr 6, 2024
Replies: 1 comment 1 reply
-
It requires to be admin on Windows to have a chance to retrieve this information. But to be clear: on Windows, the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
adriancalavie
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It requires to be admin on Windows to have a chance to retrieve this information. But to be clear: on Windows, the
Components
API doesn't work really well because of the OS limitation (in short, every component needs to have a specific code to handle it, which is basically impossible).