relayr 0.4.2

Cron scheduler with a delegated-flavour syntax
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::pin::Pin;
use async_cron_scheduler::JobId;
use anyhow::Result;

#[derive(Debug)]
pub struct Cron {
    pub pattern: &'static str,
    pub runnable: fn(JobId) -> Pin<Box<dyn Future<Output = Result<()>> + Send>>,
    pub name: &'static str,
}

inventory::collect!(Cron);