sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
impl std::fmt::Debug for crate::Gpus {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        f.debug_list().entries(self.iter()).finish()
    }
}

impl std::fmt::Debug for crate::Gpu {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        f.debug_struct("Gpu")
            .field("pci", &self.pci())
            .field("vendor", &self.vendor())
            .field("model", &self.model())
            .field("usage", &self.usage())
            .field("total_memory", &self.total_memory())
            .field("used_memory", &self.used_memory())
            .finish()
    }
}