sysinfo 0.18.1

Library to get system information such as processes, processors, disks, components and networks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//
// Sysinfo
//
// Copyright (c) 2017 Guillaume Gomez
//

#[test]
fn test_disks() {
    use sysinfo::SystemExt;

    if sysinfo::System::IS_SUPPORTED {
        let s = sysinfo::System::new_all();
        assert!(!s.get_disks().is_empty());
    }
}