watchexec/crates/signals
2023-11-26 03:01:13 +00:00
..
src Clippy nursery (#681) 2023-11-26 02:40:57 +00:00
Cargo.toml Watchexec lib v3 (#601) 2023-11-25 20:33:44 +00:00
CHANGELOG.md Update all changelogs (#682) 2023-11-26 03:01:13 +00:00
README.md Fix and adjust docs (#530) 2023-03-18 10:23:46 +00:00
release.toml --emit-events-to (#515) 2023-03-18 21:32:24 +13:00

watchexec-signals

Watchexec's signal type.

use std::str::FromStr;
use watchexec_signals::Signal;

fn main() {
    assert_eq!(Signal::from_str("SIGINT").unwrap(), Signal::Interrupt);
}

Features

  • serde: enables serde support.
  • fromstr: enables FromStr support (default).
  • miette: enables miette (rich diagnostics) support (default).