Struct smbioslib::PowerSupplyCharacteristics
source · [−]pub struct PowerSupplyCharacteristics {
pub raw: u16,
}
Expand description
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
sourceimpl PowerSupplyCharacteristics
impl PowerSupplyCharacteristics
sourcepub fn power_supply_type(&self) -> PowerSupplyType
pub fn power_supply_type(&self) -> PowerSupplyType
Power Supply Types
sourcepub fn power_supply_status(&self) -> PowerSupplyStatus
pub fn power_supply_status(&self) -> PowerSupplyStatus
Power Supply Status
sourcepub fn input_voltage_range_switching(&self) -> InputVoltageRangeSwitching
pub fn input_voltage_range_switching(&self) -> InputVoltageRangeSwitching
DMTF Input Voltage Range Switching
sourcepub fn unplugged_from_wall(&self) -> bool
pub fn unplugged_from_wall(&self) -> bool
Power supply is unplugged from the wall
sourcepub fn is_present(&self) -> bool
pub fn is_present(&self) -> bool
Power supply is present
sourcepub fn hot_replaceable(&self) -> bool
pub fn hot_replaceable(&self) -> bool
Power supply is hot-replaceable
Trait Implementations
sourceimpl Debug for PowerSupplyCharacteristics
impl Debug for PowerSupplyCharacteristics
sourceimpl From<u16> for PowerSupplyCharacteristics
impl From<u16> for PowerSupplyCharacteristics
sourceimpl PartialEq<PowerSupplyCharacteristics> for PowerSupplyCharacteristics
impl PartialEq<PowerSupplyCharacteristics> for PowerSupplyCharacteristics
sourcefn eq(&self, other: &PowerSupplyCharacteristics) -> bool
fn eq(&self, other: &PowerSupplyCharacteristics) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PowerSupplyCharacteristics) -> bool
fn ne(&self, other: &PowerSupplyCharacteristics) -> bool
This method tests for !=
.
impl Eq for PowerSupplyCharacteristics
impl StructuralEq for PowerSupplyCharacteristics
impl StructuralPartialEq for PowerSupplyCharacteristics
Auto Trait Implementations
impl RefUnwindSafe for PowerSupplyCharacteristics
impl Send for PowerSupplyCharacteristics
impl Sync for PowerSupplyCharacteristics
impl Unpin for PowerSupplyCharacteristics
impl UnwindSafe for PowerSupplyCharacteristics
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