systemd-wake
This is a utility library that uses systemd-run under the hood to schedule any [Command] to
run at some future time. Allows for tasks to be scheduled and cancelled using custom systemd
unit names as handles. Note that there are no guarantees about naming collisions from other
programs. Be smart about choosing names.
Requires the systemd-wake binary to be installed in order to work. Remember to install with
cargo install systemd-wake
Use [register()] to schedule a command with systemd-run to wake at specificed time
Use [deregister()] to cancel timer
Example
use *;
// one minute in the future
let waketime = now + minutes;
// schedule a short beep
let mut command = new;
command.args;
// create unit handle
let timer_name = new.unwrap;
// register future beep
register.unwrap;
// cancel future beep
deregister.unwrap;