Crate scopeguard [−] [src]
A scope guard will run a given closure when it goes out of scope, even if the code between panics. (as long as panic doesn't abort)
Crate features:
use_std- Enabled by default. Enables the
OnUnwindstrategy. - Disable to use
no_std.
- Enabled by default. Enables the
Macros
| defer |
Macro to create a |
| defer_on_unwind |
Macro to create a |
Structs
| ScopeGuard |
|
Enums
| Always |
Always run on scope exit. |
| OnUnwind |
Run on scope exit through unwinding. |
Traits
| Strategy |
Functions
| guard |
Create a new |
| guard_on_unwind |
Create a new |