pub struct Status {
pub flags: Flags,
pub voltage: f32,
pub current: f32,
pub set_voltage: f32,
pub set_current: f32,
}
Expand description
Contains the current Voltage, Current and Flags of the power supply
Fields§
§flags: Flags
Flags as reported by the power supply
voltage: f32
Voltage in volts
current: f32
Current in amps
set_voltage: f32
Target Voltage in volts
set_current: f32
Current Limit in amps
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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