Struct nvml_wrapper::struct_wrappers::unit::PsuInfo
source · pub struct PsuInfo {
pub current: u32,
pub power_draw: u32,
pub state: String,
pub voltage: u32,
}
Expand description
Power usage information for an S-class unit.
The power supply state is a human-readable string that equals “Normal” or contains a combination of “Abnormal” plus one or more of the following (aka good luck matching on it):
- High voltage
- Fan failure
- Heatsink temperature
- Current limit
- Voltage below UV alarm threshold
- Low-voltage
- SI2C remote off command
- MOD_DISABLE input
- Short pin transition
Fields§
§current: u32
PSU current (in A)
power_draw: u32
PSU power draw (in W)
state: String
Human-readable string describing the PSU state.
voltage: u32
PSU voltage (in V)
Trait Implementations§
source§impl PartialEq for PsuInfo
impl PartialEq for PsuInfo
source§impl TryFrom<nvmlPSUInfo_st> for PsuInfo
impl TryFrom<nvmlPSUInfo_st> for PsuInfo
impl Eq for PsuInfo
impl StructuralPartialEq for PsuInfo
Auto Trait Implementations§
impl RefUnwindSafe for PsuInfo
impl Send for PsuInfo
impl Sync for PsuInfo
impl Unpin for PsuInfo
impl UnwindSafe for PsuInfo
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