pub struct PowerState {
pub charging_state: ChargingState,
pub charger_activity: ChargerActivity,
pub usbc_input_state: UsbCInputState,
pub usbc_power_delivery: UsbCPowerDelivery,
}Expand description
Represents the composite power state of the UPS Hat E.
Fields§
§charging_state: ChargingState§charger_activity: ChargerActivity§usbc_input_state: UsbCInputState§usbc_power_delivery: UsbCPowerDeliveryTrait Implementations§
Auto Trait Implementations§
impl Freeze for PowerState
impl RefUnwindSafe for PowerState
impl Send for PowerState
impl Sync for PowerState
impl Unpin for PowerState
impl UnwindSafe for PowerState
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