planif
is a builder pattern wrapper around the windows task scheduler API (windows-rs).
The planif
crate provides an ergonomic builder over top of the Win32 Task Scheduler API.
The builder supports the following trigger types: - [x] Boot - [x] Daily - [X] Event - [X] Idle - [x] Logon - [X] MonthlyDOW - [x] Monthly - [X] Registration - [x] Time - [x] Weekly
Add this to your Cargo.toml
file:
[dependencies]
planif = "0.2"
```rust use chrono::prelude::*; use planif::schedule::TaskCreationFlags; use planif::schedule_builder::{Action, ScheduleBuilder};
fn main() -> Result<(), Box
For more examples, refer to the planif/examples
folder. The folder contains code for creating each of the triggers.
All settings are available for the tasks.
The documentation contains all relevant information from the Microsoft Task Scheduler documentation.
See the changelog file.