Struct sysfs_class::DmiId
source · pub struct DmiId { /* private fields */ }
Expand description
Provides BIOS, Board, Chassis, Product, & Vendor identifiers
Implementations
sourceimpl DmiId
impl DmiId
pub fn bios_date(&self) -> Result<String>
pub fn bios_vendor(&self) -> Result<String>
pub fn bios_version(&self) -> Result<String>
pub fn board_asset_tag(&self) -> Result<String>
pub fn board_name(&self) -> Result<String>
pub fn board_serial(&self) -> Result<String>
pub fn board_vendor(&self) -> Result<String>
pub fn board_version(&self) -> Result<String>
pub fn chassis_asset_tag(&self) -> Result<String>
pub fn chassis_name(&self) -> Result<String>
pub fn chassis_serial(&self) -> Result<String>
pub fn chassis_vendor(&self) -> Result<String>
pub fn chassis_version(&self) -> Result<String>
pub fn modalias(&self) -> Result<String>
pub fn product_family(&self) -> Result<String>
pub fn product_name(&self) -> Result<String>
pub fn product_serial(&self) -> Result<String>
pub fn product_sku(&self) -> Result<String>
pub fn product_uuid(&self) -> Result<String>
pub fn product_version(&self) -> Result<String>
pub fn sys_vendor(&self) -> Result<String>
Trait Implementations
sourceimpl SysClass for DmiId
impl SysClass for DmiId
sourcefn class() -> &'static str
fn class() -> &'static str
Return the class of the sys object, the name of a folder in /sys/class
sourceunsafe fn from_path_unchecked(_path: PathBuf) -> Self
unsafe fn from_path_unchecked(_path: PathBuf) -> Self
Create a sys object from an absolute path without checking path for validity
sourcefn dir() -> PathBuf
fn dir() -> PathBuf
Return the path to the sys objects, the full path of a folder in /sys/class
sourcefn from_path(path: &Path) -> Result<Self>
fn from_path(path: &Path) -> Result<Self>
Create a sys object from a path, checking it for validity
sourcefn read_file<P: AsRef<Path>>(&self, name: P) -> Result<String>
fn read_file<P: AsRef<Path>>(&self, name: P) -> Result<String>
Read a file underneath the sys object
sourcefn parse_file<F: FromStr, P: AsRef<Path>>(&self, name: P) -> Result<F>where
F::Err: Display,
fn parse_file<F: FromStr, P: AsRef<Path>>(&self, name: P) -> Result<F>where
F::Err: Display,
Parse a number from a file underneath the sys object
Auto Trait Implementations
impl RefUnwindSafe for DmiId
impl Send for DmiId
impl Sync for DmiId
impl Unpin for DmiId
impl UnwindSafe for DmiId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more