watchexec/crates/signals/README.md

26 lines
571 B
Markdown
Raw Normal View History

2023-03-18 09:32:24 +01:00
# watchexec-signals
_Watchexec's signal type._
- **[API documentation][docs]**.
- Licensed under [Apache 2.0][license] or [MIT](https://passcod.mit-license.org).
- Status: maintained.
[docs]: https://docs.rs/watchexec-signals
[license]: ../../LICENSE
```rust
2023-03-18 11:23:46 +01:00
use std::str::FromStr;
2023-03-18 09:32:24 +01:00
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).