Guard type that keeps selected Unix signals suppressed.
use Uninterruptible;
// catch terminate signals (SIGTERM, SIGQUIT, SIGINT)
let u = terminate?;
// do work, e.g. call in sub-process
u.checkpoint?; // fails if the process recived one of the terminate signals (e.g. CTRL-C was pressed)
drop; // revert to default signal handlers
See module level documentation on docs.rs for more examples.