mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-16 09:08:37 +01:00
25 lines
571 B
Markdown
25 lines
571 B
Markdown
# 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
|
|
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).
|