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