Vigil
Software watchdog library for Rust services.
Documentation
Usage
Install from crates.io by adding vigil
to your Cargo.toml
:
[dependencies]
vigil = "0.1"
Now you can create a Vigil instance which the watched code must notify every so often. If the watched code misses too many notification ticks, the pre-programmed callbacks will be fired to allow you to handle the situation (gather diagnostics, raise an alarm, cancel the stalled task, or even kill the whole process).
let vigil = create