pub struct Battery {
pub capacity: u8,
pub status: BatteryStatus,
}Expand description
Contains capacity and current status of battery
Fields§
§capacity: u8§status: BatteryStatusTrait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Battery
impl Send for Battery
impl Sync for Battery
impl Unpin for Battery
impl UnwindSafe for Battery
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