Struct smbioslib::PowerSupplyCharacteristics [−][src]
pub struct PowerSupplyCharacteristics { pub raw: u16, }
Fields
raw: u16
Raw value
raw is most useful when value is None. This is most likely to occur when the standard was updated but this library code has not been updated to match the current standard.
Implementations
impl PowerSupplyCharacteristics
[src]
impl PowerSupplyCharacteristics
[src]pub fn power_supply_type(&self) -> PowerSupplyType
[src]
pub fn power_supply_type(&self) -> PowerSupplyType
[src]Power Supply Types
pub fn power_supply_status(&self) -> PowerSupplyStatus
[src]
pub fn power_supply_status(&self) -> PowerSupplyStatus
[src]Power Supply Status
pub fn input_voltage_range_switching(&self) -> InputVoltageRangeSwitching
[src]
pub fn input_voltage_range_switching(&self) -> InputVoltageRangeSwitching
[src]DMTF Input Voltage Range Switching
pub fn unplugged_from_wall(&self) -> bool
[src]
pub fn unplugged_from_wall(&self) -> bool
[src]Power supply is unplugged from the wall
pub fn is_present(&self) -> bool
[src]
pub fn is_present(&self) -> bool
[src]Power supply is present
pub fn hot_replaceable(&self) -> bool
[src]
pub fn hot_replaceable(&self) -> bool
[src]Power supply is hot-replaceable
Trait Implementations
impl Debug for PowerSupplyCharacteristics
[src]
impl Debug for PowerSupplyCharacteristics
[src]impl From<u16> for PowerSupplyCharacteristics
[src]
impl From<u16> for PowerSupplyCharacteristics
[src]impl PartialEq<PowerSupplyCharacteristics> for PowerSupplyCharacteristics
[src]
impl PartialEq<PowerSupplyCharacteristics> for PowerSupplyCharacteristics
[src]fn eq(&self, other: &PowerSupplyCharacteristics) -> bool
[src]
fn eq(&self, other: &PowerSupplyCharacteristics) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &PowerSupplyCharacteristics) -> bool
[src]
fn ne(&self, other: &PowerSupplyCharacteristics) -> bool
[src]This method tests for !=
.
impl Serialize for PowerSupplyCharacteristics
[src]
impl Serialize for PowerSupplyCharacteristics
[src]