Crate keepawake

Source
Expand description

Keep your computer awake.

§Examples

let _awake = keepawake::Builder::default()
    .display(true)
    .reason("Video playback")
    .app_name("My prog")
    .app_reverse_domain("io.github.myprog")
    .create()?;
let _awake = keepawake::Builder::default()
    .display(true)
    .idle(true)
    .sleep(true)
    .create()?;

Structs§

Builder
Builder for Options.
KeepAwake
Keeps the machine or display awake (as configured), until dropped. Create using Builder.

Enums§

BuilderError
Error type for Builder
Error
Error type.

Type Aliases§

Result
A specialized Result type for this crate.
SystemError
A system error whose actual type varies by target.