#[repr(isize)]pub enum MonitorPower {
On = -1,
Low = 1,
Off = 2,
}
Available on crate feature
ui
only.Expand description
Monitor power state.
Can be set using WindowHandle::set_monitor_power
.
Variants§
Trait Implementations§
Source§impl Clone for MonitorPower
impl Clone for MonitorPower
Source§fn clone(&self) -> MonitorPower
fn clone(&self) -> MonitorPower
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 MonitorPower
impl Debug for MonitorPower
Source§impl Default for MonitorPower
impl Default for MonitorPower
Source§fn default() -> MonitorPower
fn default() -> MonitorPower
Returns the “default value” for a type. Read more
Source§impl From<MonitorPower> for isize
impl From<MonitorPower> for isize
Source§fn from(enum_value: MonitorPower) -> Self
fn from(enum_value: MonitorPower) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MonitorPower
impl PartialEq for MonitorPower
impl Copy for MonitorPower
impl Eq for MonitorPower
impl StructuralPartialEq for MonitorPower
Auto Trait Implementations§
impl Freeze for MonitorPower
impl RefUnwindSafe for MonitorPower
impl Send for MonitorPower
impl Sync for MonitorPower
impl Unpin for MonitorPower
impl UnwindSafe for MonitorPower
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