Struct smbioslib::SMBiosSystemChassisInformation[][src]

pub struct SMBiosSystemChassisInformation<'a> { /* fields omitted */ }

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

impl<'a> SMBiosSystemChassisInformation<'a>[src]

pub fn manufacturer(&self) -> Option<String>[src]

Manufacturer

pub fn chassis_type(&self) -> Option<ChassisTypeData>[src]

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.

pub fn version(&self) -> Option<String>[src]

Version

pub fn serial_number(&self) -> Option<String>[src]

Serial number

pub fn asset_tag_number(&self) -> Option<String>[src]

Asset tag number

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

Boot-up State

State of the enclosure when it was last booted.

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

Power supply state

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

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

Thermal state

Thermal state of the enclosure when last booted.

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

Security status

Physical security status of the enclosure when last booted.

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

OEM-defined

OEM- or BIOS vendor-specific information

pub fn height(&self) -> Option<ChassisHeight>[src]

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.

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

Number of power cords

Number of power cords associated with the enclosure or chassis

pub fn contained_element_count(&self) -> Option<u8>[src]

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.

pub fn contained_element_record_length(&self) -> Option<u8>[src]

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.

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

Contained Elements

pub fn sku_number(&self) -> Option<String>[src]

SKU number

Chassis or enclosure SKU number

Trait Implementations

impl Debug for SMBiosSystemChassisInformation<'_>[src]

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

Formats the value using the given formatter. Read more

impl<'a> SMBiosStruct<'a> for SMBiosSystemChassisInformation<'a>[src]

const STRUCT_TYPE: u8[src]

The SMBIOS structure type Read more

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

Creates a new instance of the implementing SMBIOS type

fn parts(&self) -> &'a UndefinedStruct[src]

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

impl Serialize for SMBiosSystemChassisInformation<'_>[src]

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

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T

Notable traits for &'_ mut R

impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

Notable traits for &'_ mut R

impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.