pub enum PowerKind {
System,
SystemAndDisplay,
}Expand description
What to keep awake.
Variants§
System
Prevent idle system sleep; the display may turn off.
SystemAndDisplay
Prevent idle system sleep and keep the display on.
Trait Implementations§
impl Copy for PowerKind
impl Eq for PowerKind
impl StructuralPartialEq for PowerKind
Auto Trait Implementations§
impl Freeze for PowerKind
impl RefUnwindSafe for PowerKind
impl Send for PowerKind
impl Sync for PowerKind
impl Unpin for PowerKind
impl UnsafeUnpin for PowerKind
impl UnwindSafe for PowerKind
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