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§

Enums§

Functions§