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]

pub fn power_supply_type(&self) -> PowerSupplyType[src]

Power Supply Types

pub fn power_supply_status(&self) -> PowerSupplyStatus[src]

Power Supply Status

pub fn input_voltage_range_switching(&self) -> InputVoltageRangeSwitching[src]

DMTF Input Voltage Range Switching

pub fn unplugged_from_wall(&self) -> bool[src]

Power supply is unplugged from the wall

pub fn is_present(&self) -> bool[src]

Power supply is present

pub fn hot_replaceable(&self) -> bool[src]

Power supply is hot-replaceable

Trait Implementations

impl Debug for PowerSupplyCharacteristics[src]

impl Eq for PowerSupplyCharacteristics[src]

impl From<u16> for PowerSupplyCharacteristics[src]

impl PartialEq<PowerSupplyCharacteristics> for PowerSupplyCharacteristics[src]

impl StructuralEq for PowerSupplyCharacteristics[src]

impl StructuralPartialEq for PowerSupplyCharacteristics[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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.

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.