sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
use crate::PCI;

pub(crate) struct GpuInner {
    pub(super) pci: PCI,
    pub(super) vendor: Option<String>,
    pub(super) model: Option<String>,
    pub(super) usage: Option<f32>,
    pub(crate) updated: bool,
}

impl GpuInner {
    pub(crate) fn pci(&self) -> &PCI {
        &self.pci
    }
    pub(crate) fn vendor(&self) -> Option<&str> {
        self.vendor.as_deref()
    }
    pub(crate) fn model(&self) -> Option<&str> {
        self.model.as_deref()
    }
    pub(crate) fn usage(&self) -> Option<f32> {
        self.usage
    }
    pub(crate) fn total_memory(&self) -> Option<u64> {
        None
    }
    pub(crate) fn used_memory(&self) -> Option<u64> {
        None
    }
}