Struct 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§

Source§

impl<'a> SMBiosSystemChassisInformation<'a>

Source

pub fn manufacturer(&self) -> SMBiosString

Manufacturer

Source

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.

Source

pub fn version(&self) -> SMBiosString

Version

Source

pub fn serial_number(&self) -> SMBiosString

Serial number

Source

pub fn asset_tag_number(&self) -> SMBiosString

Asset tag number

Source

pub fn bootup_state(&self) -> Option<ChassisStateData>

Boot-up State

State of the enclosure when it was last booted.

Source

pub fn power_supply_state(&self) -> Option<ChassisStateData>

Power supply state

State of the enclosure’s power supply (or supplies) when last booted

Source

pub fn thermal_state(&self) -> Option<ChassisStateData>

Thermal state

Thermal state of the enclosure when last booted.

Source

pub fn security_status(&self) -> Option<ChassisSecurityStatusData>

Security status

Physical security status of the enclosure when last booted.

Source

pub fn oem_defined(&self) -> Option<u32>

OEM-defined

OEM- or BIOS vendor-specific information

Source

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.

Source

pub fn number_of_power_cords(&self) -> Option<PowerCords>

Number of power cords

Number of power cords associated with the enclosure or chassis

Source

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.

Source

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.

Source

pub fn contained_elements(&self) -> Option<ContainedElements<'_>>

Contained Elements

Source

pub fn sku_number(&self) -> SMBiosString

SKU number

Chassis or enclosure SKU number

Trait Implementations§

Source§

impl Debug for SMBiosSystemChassisInformation<'_>

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> SMBiosStruct<'a> for SMBiosSystemChassisInformation<'a>

Source§

const STRUCT_TYPE: u8 = 3u8

The SMBIOS structure type Read more
Source§

fn new(parts: &'a UndefinedStruct) -> Self

Creates a new instance of the implementing SMBIOS type
Source§

fn parts(&self) -> &'a UndefinedStruct

Contains the standard parts/sections of the implementing SMBIOS type.
Source§

impl Serialize for SMBiosSystemChassisInformation<'_>

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.