Struct smbioslib::SMBiosSystemChassisInformation
source · [−]pub struct SMBiosSystemChassisInformation<'a> { /* private fields */ }
Expand description
System Enclosure or Chassis (Type 3)
The information in this structure (see Table 16) defines attributes of the system’s mechanical enclosure(s). For example, if a system included a separate enclosure for its peripheral devices, two structures would be returned: one for the main system enclosure and the second for the peripheral device enclosure. The additions to this structure in version 2.1 of this specification support the population of the CIM_Chassis class.
Compliant with: DMTF SMBIOS Reference Specification 3.4.0 (DSP0134) Document Date: 2020-07-17
Implementations
sourceimpl<'a> SMBiosSystemChassisInformation<'a>
impl<'a> SMBiosSystemChassisInformation<'a>
sourcepub fn manufacturer(&self) -> Option<String>
pub fn manufacturer(&self) -> Option<String>
Manufacturer
sourcepub fn chassis_type(&self) -> Option<ChassisTypeData>
pub fn chassis_type(&self) -> Option<ChassisTypeData>
Chassis type
Bit 7 Chassis lock is present if 1. Otherwise, either a lock is not present or it is unknown if the enclosure has a lock. Bits 6:0 Enumeration value.
sourcepub fn serial_number(&self) -> Option<String>
pub fn serial_number(&self) -> Option<String>
Serial number
sourcepub fn asset_tag_number(&self) -> Option<String>
pub fn asset_tag_number(&self) -> Option<String>
Asset tag number
sourcepub fn bootup_state(&self) -> Option<ChassisStateData>
pub fn bootup_state(&self) -> Option<ChassisStateData>
Boot-up State
State of the enclosure when it was last booted.
sourcepub fn power_supply_state(&self) -> Option<ChassisStateData>
pub fn power_supply_state(&self) -> Option<ChassisStateData>
Power supply state
State of the enclosure’s power supply (or supplies) when last booted
sourcepub fn thermal_state(&self) -> Option<ChassisStateData>
pub fn thermal_state(&self) -> Option<ChassisStateData>
Thermal state
Thermal state of the enclosure when last booted.
sourcepub fn security_status(&self) -> Option<ChassisSecurityStatusData>
pub fn security_status(&self) -> Option<ChassisSecurityStatusData>
Security status
Physical security status of the enclosure when last booted.
sourcepub fn oem_defined(&self) -> Option<u32>
pub fn oem_defined(&self) -> Option<u32>
OEM-defined
OEM- or BIOS vendor-specific information
sourcepub fn height(&self) -> Option<ChassisHeight>
pub fn height(&self) -> Option<ChassisHeight>
Height
Height of the enclosure, in ’U’s
A U is a standard unit of measure for the height of a rack or rack-mountable component and is equal to 1.75 inches or 4.445 cm.
sourcepub fn number_of_power_cords(&self) -> Option<PowerCords>
pub fn number_of_power_cords(&self) -> Option<PowerCords>
Number of power cords
Number of power cords associated with the enclosure or chassis
sourcepub fn contained_element_count(&self) -> Option<u8>
pub fn contained_element_count(&self) -> Option<u8>
Contained element count (n)
Number of Contained Element records that follow, in the range 0 to 255 Each Contained Element group comprises m bytes, as specified by the Contained Element Record Length field that follows. If no Contained Elements are included, this field is set to 0.
sourcepub fn contained_element_record_length(&self) -> Option<u8>
pub fn contained_element_record_length(&self) -> Option<u8>
Contained element record length (m)
Byte length of each Contained Element record that follows, in the range 0 to 255 If no Contained Elements are included, this field is set to 0. For version 2.3.2 and later of this specification, this field is set to at least 03h when Contained Elements are specified.
sourcepub fn contained_elements(&self) -> Option<ContainedElements<'_>>
pub fn contained_elements(&self) -> Option<ContainedElements<'_>>
Contained Elements
sourcepub fn sku_number(&self) -> Option<String>
pub fn sku_number(&self) -> Option<String>
SKU number
Chassis or enclosure SKU number
Trait Implementations
sourceimpl Debug for SMBiosSystemChassisInformation<'_>
impl Debug for SMBiosSystemChassisInformation<'_>
sourceimpl<'a> SMBiosStruct<'a> for SMBiosSystemChassisInformation<'a>
impl<'a> SMBiosStruct<'a> for SMBiosSystemChassisInformation<'a>
sourceconst STRUCT_TYPE: u8
const STRUCT_TYPE: u8
The SMBIOS structure type Read more
sourcefn new(parts: &'a UndefinedStruct) -> Self
fn new(parts: &'a UndefinedStruct) -> Self
Creates a new instance of the implementing SMBIOS type
sourcefn parts(&self) -> &'a UndefinedStruct
fn parts(&self) -> &'a UndefinedStruct
Contains the standard parts/sections of the implementing SMBIOS type.
sourceimpl Serialize for SMBiosSystemChassisInformation<'_>
impl Serialize for SMBiosSystemChassisInformation<'_>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SMBiosSystemChassisInformation<'a>
impl<'a> Send for SMBiosSystemChassisInformation<'a>
impl<'a> Sync for SMBiosSystemChassisInformation<'a>
impl<'a> Unpin for SMBiosSystemChassisInformation<'a>
impl<'a> UnwindSafe for SMBiosSystemChassisInformation<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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