Crates.io | watchexec-signals |
lib.rs | watchexec-signals |
version | 4.0.0 |
source | src |
created_at | 2023-03-18 11:12:23.495055 |
updated_at | 2024-10-14 10:15:44.858547 |
description | Watchexec's signal types |
homepage | |
repository | https://github.com/watchexec/watchexec |
max_upload_size | |
id | 813670 |
size | 16,451 |
Watchexec's signal type.
use std::str::FromStr;
use watchexec_signals::Signal;
fn main() {
assert_eq!(Signal::from_str("SIGINT").unwrap(), Signal::Interrupt);
}
serde
: enables serde support.fromstr
: enables FromStr
support (default).miette
: enables miette (rich diagnostics) support (default).