Crates.io | watchexec-signals |
lib.rs | watchexec-signals |
version | 3.0.0 |
source | src |
created_at | 2023-03-18 11:12:23.495055 |
updated_at | 2024-04-20 12:13:41.59576 |
description | Watchexec's signal types |
homepage | |
repository | https://github.com/watchexec/watchexec |
max_upload_size | |
id | 813670 |
size | 16,254 |
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).