pub struct SMBiosPortableBattery<'a> { /* private fields */ }
Expand description
§Portable Battery (Type 22)
This structure describes the attributes of the portable battery or batteries for the system. The structure contains the static attributes for the group. Each structure describes a single battery pack’s attributes.
Compliant with: DMTF SMBIOS Reference Specification 3.4.0 (DSP0134) Document Date: 2020-07-17
Implementations§
Source§impl<'a> SMBiosPortableBattery<'a>
impl<'a> SMBiosPortableBattery<'a>
Sourcepub fn location(&self) -> SMBiosString
pub fn location(&self) -> SMBiosString
Identifies the location of the battery
Sourcepub fn manufacturer(&self) -> SMBiosString
pub fn manufacturer(&self) -> SMBiosString
Names the company that manufactured the battery
Sourcepub fn manufacture_date(&self) -> SMBiosString
pub fn manufacture_date(&self) -> SMBiosString
The date on which the battery was manufactured.
Version 2.2+ implementations that use a Smart Battery set this field to 0 (no string) to indicate that the SBDS Manufacture Date field contains the information.
Sourcepub fn serial_number(&self) -> SMBiosString
pub fn serial_number(&self) -> SMBiosString
The serial number for the battery
Version 2.2+ implementations that use a Smart Battery set this field to 0 (no string) to indicate that the SBDS Serial Number field contains the information.
Sourcepub fn device_name(&self) -> SMBiosString
pub fn device_name(&self) -> SMBiosString
Names the battery device
EXAMPLE: “DR-36”
Sourcepub fn device_chemistry(&self) -> Option<PortableBatteryDeviceChemistryData>
pub fn device_chemistry(&self) -> Option<PortableBatteryDeviceChemistryData>
Identifies the battery chemistry
Version 2.2+ implementations that use a Smart Battery set this field to 02h (Unknown) to indicate that the SBDS Device Chemistry field contains the information.
Sourcepub fn design_capacity(&self) -> Option<PortableBatteryDesignCapacity>
pub fn design_capacity(&self) -> Option<PortableBatteryDesignCapacity>
Design capacity of the battery in mWatt-hours
If the value is unknown, the field contains 0.
For version 2.2+ implementations, this value is multiplied by the ‘design_capacity_multiplier’ to produce the actual value.
Sourcepub fn design_voltage(&self) -> Option<PortableBatteryDesignVoltage>
pub fn design_voltage(&self) -> Option<PortableBatteryDesignVoltage>
Design voltage of the battery in mVolts
If the value is unknown, the field contains 0.
Sourcepub fn sbds_version_number(&self) -> SMBiosString
pub fn sbds_version_number(&self) -> SMBiosString
Contains the Smart Battery Data Specification version number supported by this battery
If the battery does not support the function, no string is supplied.
Sourcepub fn maximum_error_in_battery_data(&self) -> Option<u8>
pub fn maximum_error_in_battery_data(&self) -> Option<u8>
Maximum error (as a percentage in the range 0 to 100) in the Watt-hour data reported by the battery, indicating an upper bound on how much additional energy the battery might have above the energy it reports having
If the value is unknown, the field contains FFh.
Sourcepub fn sbds_serial_number(&self) -> Option<u16>
pub fn sbds_serial_number(&self) -> Option<u16>
16-bit value that identifies the battery’s serial number
This value, when combined with the Manufacturer, Device Name, and Manufacture Date, uniquely identifies the battery. The Serial Number field must be set to 0 (no string) for this field to be valid.
Sourcepub fn sbds_manufacture_date(&self) -> Option<u16>
pub fn sbds_manufacture_date(&self) -> Option<u16>
Date the cell pack was manufactured, in packed format
Sourcepub fn sbds_device_chemistry(&self) -> SMBiosString
pub fn sbds_device_chemistry(&self) -> SMBiosString
Number of the string that identifies the battery chemistry (for example, “PbAc”) The Device Chemistry field must be set to 02h (Unknown) for this field to be valid.
Sourcepub fn design_capacity_multiplier(&self) -> Option<u8>
pub fn design_capacity_multiplier(&self) -> Option<u8>
Multiplication factor of the Design Capacity value, which assures that the mWatt hours value does not overflow for SBDS implementations
The multiplier default is 1, SBDS implementations use the value 10 to correspond to the data as returned from the SBDS Function 18h.
Sourcepub fn oem_specific(&self) -> Option<u32>
pub fn oem_specific(&self) -> Option<u32>
Contains OEM- or BIOS vendor-specific information