scopeguard

1.2.0

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!`, `defer_on_unwind!`, `defer_on_success!` as shorthands for guards with one of the implemented strategies.

Package

Registry
crates.io
Repository
bluss/scopeguard
Documentation
https://docs.rs/scopeguard/

Terms and attribution

License

MIT OR Apache-2.0

MITApache-2.0

Authors
bluss
License files
LICENSE-APACHELICENSE-MIT

Dependency paths

  1. cms workspace root
  2. tokio 1.53.1
  3. lock_api 0.4.14
  4. scopeguard 1.2.0

Depended on by

Directly

Through other packages