#[repr(u32)]pub enum OSPowerState {
Unknown = 0,
OnBattery = 1,
NoBattery = 2,
Charging = 3,
Charged = 4,
}
Variants§
Trait Implementations§
Source§impl Clone for OSPowerState
impl Clone for OSPowerState
Source§fn clone(&self) -> OSPowerState
fn clone(&self) -> OSPowerState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OSPowerState
impl Debug for OSPowerState
Source§impl Hash for OSPowerState
impl Hash for OSPowerState
Source§impl PartialEq for OSPowerState
impl PartialEq for OSPowerState
impl Copy for OSPowerState
impl Eq for OSPowerState
impl StructuralPartialEq for OSPowerState
Auto Trait Implementations§
impl Freeze for OSPowerState
impl RefUnwindSafe for OSPowerState
impl Send for OSPowerState
impl Sync for OSPowerState
impl Unpin for OSPowerState
impl UnwindSafe for OSPowerState
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