pub fn soft() -> GuardExpand description
Create a guard that when dropped tries to delete the host executable.
Self-destructs when dropped. Doesn’t ensure that executable is always deleted, so may not work 100% of the time.
§Usage
fn main() {
let _mortem = mortem::soft(); // register guard
// some code
println!("Hello!")
// functions ends, _mortem drops and executable is deleted
}