server-watchdog 0.1.0

A server monitoring and remote control tool via messenger.
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub mod runner;

use async_trait::async_trait;
pub use runner::WorkerRunner;

#[async_trait]
pub trait Worker: Send {
    async fn on_tick(&mut self) -> bool;
    fn get_name(&self) -> &str;
    fn interval(&self) -> i32;
}