pub struct PowerSupplyCharacteristics {
pub raw: u16,
}
Expand description
§Power Supply Characteristics
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§
Source§impl 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§
Source§impl Debug for PowerSupplyCharacteristics
impl Debug for PowerSupplyCharacteristics
Source§impl From<u16> for PowerSupplyCharacteristics
impl From<u16> for PowerSupplyCharacteristics
impl Eq for PowerSupplyCharacteristics
impl StructuralPartialEq for PowerSupplyCharacteristics
Auto Trait Implementations§
impl Freeze for PowerSupplyCharacteristics
impl RefUnwindSafe for PowerSupplyCharacteristics
impl Send for PowerSupplyCharacteristics
impl Sync for PowerSupplyCharacteristics
impl Unpin for PowerSupplyCharacteristics
impl UnwindSafe for PowerSupplyCharacteristics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more