pub struct MacOsPowerSourceSnapshot {
pub current_capacity: u32,
pub max_capacity: u32,
pub is_charging: bool,
pub is_charged: bool,
pub is_low_power_mode: bool,
pub time_to_empty_min: Option<i32>,
pub time_to_full_min: Option<i32>,
pub power_source_state: String,
}Fields§
§current_capacity: u32§max_capacity: u32§is_charging: bool§is_charged: bool§is_low_power_mode: bool§time_to_empty_min: Option<i32>§time_to_full_min: Option<i32>§power_source_state: StringTrait Implementations§
Source§impl Clone for MacOsPowerSourceSnapshot
impl Clone for MacOsPowerSourceSnapshot
Source§impl Debug for MacOsPowerSourceSnapshot
impl Debug for MacOsPowerSourceSnapshot
Source§impl PartialEq for MacOsPowerSourceSnapshot
impl PartialEq for MacOsPowerSourceSnapshot
impl StructuralPartialEq for MacOsPowerSourceSnapshot
Auto Trait Implementations§
impl Forget for MacOsPowerSourceSnapshot
impl Freeze for MacOsPowerSourceSnapshot
impl Move for MacOsPowerSourceSnapshot
impl RefUnwindSafe for MacOsPowerSourceSnapshot
impl Send for MacOsPowerSourceSnapshot
impl Sync for MacOsPowerSourceSnapshot
impl Unpin for MacOsPowerSourceSnapshot
impl UnsafeUnpin for MacOsPowerSourceSnapshot
impl UnwindSafe for MacOsPowerSourceSnapshot
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