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