#[repr(u32)]pub enum BatterySaverState {
Off = 0,
On = 1,
}Expand description
Enum indicates the battery saver state as the Data member of GUID_POWER_SAVING_STATUS notification
Variants§
Implementations§
Source§impl BatterySaverState
impl BatterySaverState
pub fn to_raw(&self) -> u32
pub fn from_raw(raw: u32) -> Result<BatterySaverState, ParseRawError>
Trait Implementations§
Source§impl Clone for BatterySaverState
impl Clone for BatterySaverState
Source§fn clone(&self) -> BatterySaverState
fn clone(&self) -> BatterySaverState
Returns a duplicate 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 BatterySaverState
impl Debug for BatterySaverState
Source§impl Hash for BatterySaverState
impl Hash for BatterySaverState
Source§impl PartialEq for BatterySaverState
impl PartialEq for BatterySaverState
impl Copy for BatterySaverState
impl Eq for BatterySaverState
impl StructuralPartialEq for BatterySaverState
Auto Trait Implementations§
impl Freeze for BatterySaverState
impl RefUnwindSafe for BatterySaverState
impl Send for BatterySaverState
impl Sync for BatterySaverState
impl Unpin for BatterySaverState
impl UnwindSafe for BatterySaverState
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