Enum windows_service::service::MonitorState
source · #[repr(u32)]
pub enum MonitorState {
Off,
On,
}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 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 MonitorState
impl Debug for MonitorState
source§impl Hash for MonitorState
impl Hash for MonitorState
source§impl PartialEq<MonitorState> for MonitorState
impl PartialEq<MonitorState> for MonitorState
source§fn eq(&self, other: &MonitorState) -> bool
fn eq(&self, other: &MonitorState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.