pub enum Cause {
Unknown,
Kernel,
Sent(Sent),
Chld(Chld),
}
Available on crate feature extended-siginfo-raw only.
Expand description
What caused a signal.
This is a best-effort (and possibly incomplete) representation of the C siginfo_t::si_code.
It may differ between OSes and may be extended in future versions.
Note that this doesn’t contain all the „fault“ signals (SIGILL, SIGSEGV and similar).
There’s no reasonable way to use the exfiltrators with them, since the handler either needs to
terminate the process or somehow recover from the situation. Things based on exfiltrators do
neither, which would cause an UB and therefore these values just don’t make sense.
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.