Enum insomnia::LockType [−][src]
pub enum LockType {
AutomaticSuspend,
ManualSuspend,
Screen,
}
Expand description
The type of power management operation to inhibit
Note that on some platforms, one variant of this enum may imply another.
For instance, on Windows, it’s not possible to inhibit LockType::ManualSuspend
without
also inhibiting LockType::AutomaticSuspend
.
Variants
AutomaticSuspend
Automatic suspension (managed by the system idle timer)
ManualSuspend
Manual suspension
Screen
Screensaver / Screen sleep
On Windows
A LockType::AutomaticSuspend
must be taken in addition to a
LockType::Screen
to ensure the display stays on and the system does
not enter sleep for the duration of the request.
Trait Implementations
Converts an enum of this type into its bit position.
Converts a bit position into an enum value.
Auto Trait Implementations
impl RefUnwindSafe for LockType
impl UnwindSafe for LockType
Blanket Implementations
Mutably borrows from an owned value. Read more