pub enum NoSleepType {
PreventUserIdleDisplaySleep,
PreventUserIdleSystemSleep,
}Variants§
PreventUserIdleDisplaySleep
Prevents the display from dimming automatically. For example: playing a video.
PreventUserIdleSystemSleep
Prevents the system from sleeping automatically due to a lack of user activity. For example: downloading a file in the background.
Trait Implementations§
Source§impl Clone for NoSleepType
impl Clone for NoSleepType
Source§fn clone(&self) -> NoSleepType
fn clone(&self) -> NoSleepType
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 NoSleepType
impl Debug for NoSleepType
Source§impl PartialEq for NoSleepType
impl PartialEq for NoSleepType
impl Copy for NoSleepType
impl Eq for NoSleepType
impl StructuralPartialEq for NoSleepType
Auto Trait Implementations§
impl Freeze for NoSleepType
impl RefUnwindSafe for NoSleepType
impl Send for NoSleepType
impl Sync for NoSleepType
impl Unpin for NoSleepType
impl UnwindSafe for NoSleepType
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