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