Crate keep_active
source ·Expand description
Keep your computer awake.
§Examples
let _awake = keep_active::Builder::default()
.display(true)
.reason("Video playback")
.app_name("My prog")
.app_reverse_domain("io.github.myprog")
.create()?;
let _awake = keep_active::Builder::default()
.display(true)
.idle(true)
.sleep(true)
.create()?;
Structs§
- Builder for
Options
. - Keeps the machine or display awake (as configured), until dropped. Create using Builder.
Enums§
- Error type for Builder