pub fn add_global_ctrlc_handler<F: FnMut() + Send + 'static>(
handler: F,
) -> Result<()>Available on crate features
cli and print only.Expand description
Add a global handler to handle Ctrl-C signals
See Handling Ctrl-C.
Note that this is only available with feature cli - since
you should not be adding a global handler from a library.