Struct power_monitor::PowerData
source · pub struct PowerData {
pub ac_online: bool,
pub battery: Option<BatteryData>,
}
Fields§
§ac_online: bool
§battery: Option<BatteryData>
Trait Implementations§
source§impl From<PowerSupplyProperties> for PowerData
impl From<PowerSupplyProperties> for PowerData
source§fn from(props: PowerSupplyProperties) -> Self
fn from(props: PowerSupplyProperties) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for PowerData
impl Send for PowerData
impl Sync for PowerData
impl Unpin for PowerData
impl UnwindSafe for PowerData
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