Enum windows_service::service::DisplayState
source · #[repr(i32)]
pub enum DisplayState {
Off,
On,
Dimmed,
}Expand description
Enum indicates the current monitor’s display state as the Data member of GUID_CONSOLE_DISPLAY_STATE notification
Variants§
Implementations§
source§impl DisplayState
impl DisplayState
pub fn to_raw(&self) -> i32
pub fn from_raw(raw: i32) -> Result<DisplayState, ParseRawError>
Trait Implementations§
source§impl Clone for DisplayState
impl Clone for DisplayState
source§fn clone(&self) -> DisplayState
fn clone(&self) -> DisplayState
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 DisplayState
impl Debug for DisplayState
source§impl Hash for DisplayState
impl Hash for DisplayState
source§impl PartialEq<DisplayState> for DisplayState
impl PartialEq<DisplayState> for DisplayState
source§fn eq(&self, other: &DisplayState) -> bool
fn eq(&self, other: &DisplayState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.