Struct nvml_wrapper::struct_wrappers::unit::PsuInfo
source · [−]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: u32PSU current (in A)
power_draw: u32PSU power draw (in W)
state: StringHuman-readable string describing the PSU state.
voltage: u32PSU voltage (in V)
Trait Implementations
sourceimpl TryFrom<nvmlPSUInfo_st> for PsuInfo
impl TryFrom<nvmlPSUInfo_st> for PsuInfo
impl Eq for PsuInfo
impl StructuralEq 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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more