sinf 0.1.0

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

pub(crate) struct MotherboardInner;

impl MotherboardInner {
    pub(crate) fn new() -> Result<Self, Error> {
        Ok(Self)
    }

    pub(crate) fn name(&self) -> Option<String> {
        io_platform::board_id()
    }

    pub(crate) fn vendor_name(&self) -> Option<String> {
        io_platform::manufacturer()
    }

    pub(crate) fn version(&self) -> Option<String> {
        io_platform::version()
    }

    pub(crate) fn serial_number(&self) -> Option<String> {
        io_platform::serial_number()
    }

    pub(crate) fn asset_tag(&self) -> Option<String> {
        None
    }
}