pub fn hard() -> Guard
Expand description
Create a guard that when dropped blocks till the host executable is successfully deleted.
Usage
fn main() {
let _mortem = mortem::hard(); // register guard
// some code
println!("Hello!")
// functions ends, _mortem drops and executable is deleted
}