pub struct PduState {
pub current: f64,
pub voltage: f64,
pub power: f64,
pub dissipation: f64,
pub frequency: f64,
pub outlets: [u8; 8],
}Expand description
The electrical state a PDU reports.
Fields§
§current: f64Current in amperes.
voltage: f64Voltage in volts.
power: f64Real power in watts.
dissipation: f64Dissipation in watts.
frequency: f64Mains frequency in Hz.
outlets: [u8; 8]Per-outlet state.
Trait Implementations§
impl Copy for PduState
impl StructuralPartialEq for PduState
Auto Trait Implementations§
impl Freeze for PduState
impl RefUnwindSafe for PduState
impl Send for PduState
impl Sync for PduState
impl Unpin for PduState
impl UnsafeUnpin for PduState
impl UnwindSafe for PduState
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