pub enum PowerAssertionKind {
PreventApplicationSuspension,
PreventDisplaySleep,
}Expand description
The native sleep behavior prevented while a PowerAssertion is alive.
Variants§
PreventApplicationSuspension
Keep the application and system awake while still allowing the display to sleep.
PreventDisplaySleep
Keep both the system and display awake.
Trait Implementations§
Source§impl Clone for PowerAssertionKind
impl Clone for PowerAssertionKind
Source§fn clone(&self) -> PowerAssertionKind
fn clone(&self) -> PowerAssertionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PowerAssertionKind
Source§impl Debug for PowerAssertionKind
impl Debug for PowerAssertionKind
impl Eq for PowerAssertionKind
Source§impl Hash for PowerAssertionKind
impl Hash for PowerAssertionKind
Source§impl PartialEq for PowerAssertionKind
impl PartialEq for PowerAssertionKind
impl StructuralPartialEq for PowerAssertionKind
Auto Trait Implementations§
impl Freeze for PowerAssertionKind
impl RefUnwindSafe for PowerAssertionKind
impl Send for PowerAssertionKind
impl Sync for PowerAssertionKind
impl Unpin for PowerAssertionKind
impl UnsafeUnpin for PowerAssertionKind
impl UnwindSafe for PowerAssertionKind
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