rust-scopeguard 1.1.0 Scope guard which will run a closure even out of scope
This package provides a RAII scope guard that will run a given closure when it goes out of scope, even if the code between panics (assuming unwinding panic). Defines the macros
defer_on_success! as shorthands for guards with one of the implemented strategies.