mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
15 lines
292 B
Rust
15 lines
292 B
Rust
use std::pin::Pin;
|
|
|
|
use chrono::{DateTime, Utc};
|
|
|
|
#[allow(dead_code)]
|
|
pub mod async_basic;
|
|
|
|
#[allow(dead_code)]
|
|
pub mod basic;
|
|
|
|
pub trait CronTask: Send + Sync {
|
|
fn get_next_execution(&self) -> Option<DateTime<Utc>>;
|
|
fn call(&self) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>;
|
|
}
|