Expand description
screen-wake-lock: minimal cross-platform “keep screen awake” guard.
Usage:
let lock = screen_wake_lock::ScreenWakeLock::acquire("Playing video")?;
// keep running...
drop(lock); // screen can sleep againStructs§
- Linux
Options - Options for Linux (ignored on Windows/macOS).
- Screen
Wake Lock - Guard that keeps the display from idling/sleeping while alive.
Enums§
- Error
- Error type for wake lock acquisition.