Skip to main content

defer

Function defer 

Source
pub fn defer<F>(f: F) -> Deferred<F>
where F: FnOnce(),
Expand description

Run the given function when the returned value is dropped (unless it’s cancelled).