Expand description
This crate provides little utilities to declare callbacks inside a scope, that get executed on success, failure, or exit on that scope.
This is different than the ScopeGuard crate does, because here it’s dependent on the scope’s outcome which callbacks should run.
Structs
Traits
A trait to annotate whether a type is
success
or failure
.Functions
Executes the scope
scope
.
A scope is a closure, in which access to a guard is granted.
A guard is used to schedule callbacks to run on a scope’s success, failure, or exit, using
Guard::on_scope_success
, Guard::on_scope_failure
, Guard::on_scope_exit
.