pub enum Awake {
Busy,
System,
Display,
}Expand description
How awake to stay.
Variants§
Busy
Keep the process at full speed when it is hidden (macOS App Nap off). The machine may still sleep when idle.
System
Also keep the machine from sleeping when idle (renders, exports, downloads).
Display
Also keep the display on (playback, presentations).
Trait Implementations§
impl Copy for Awake
Source§impl<'de> Deserialize<'de> for Awake
impl<'de> Deserialize<'de> for Awake
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Awake
impl StructuralPartialEq for Awake
Auto Trait Implementations§
impl Freeze for Awake
impl RefUnwindSafe for Awake
impl Send for Awake
impl Sync for Awake
impl Unpin for Awake
impl UnsafeUnpin for Awake
impl UnwindSafe for Awake
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