Struct rich_sdl2_rust::power::PowerInfo
source · pub struct PowerInfo {
pub state: PowerState,
pub remaining_seconds: Option<u32>,
pub remaining_ratio: Option<u32>,
}
Expand description
A detail information of the system battery.
Fields§
§state: PowerState
The battery state of the system.
remaining_seconds: Option<u32>
The remaining amount of battery in seconds if available.
remaining_ratio: Option<u32>
The remaining amount of battery in percent if available.
Implementations§
Trait Implementations§
source§impl PartialEq for PowerInfo
impl PartialEq for PowerInfo
impl Eq for PowerInfo
impl StructuralPartialEq for PowerInfo
Auto Trait Implementations§
impl RefUnwindSafe for PowerInfo
impl Send for PowerInfo
impl Sync for PowerInfo
impl Unpin for PowerInfo
impl UnwindSafe for PowerInfo
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