hard

Function hard 

Source
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
}