Module action_fuse

Source
Expand description

Common message-related definitions.

Structs§

ActionFuse
ActionFuse is a wrapper around a triggered action (a closure with no arguments and no return value). This action is invoked once the fuse goes out of scope (via the Drop trait). An ActionFuse can be defused, preventing the action from automatically invoking when going out of scope.

Type Aliases§

ActionFuseHandle
The reference-counted handle to an ActionFuse. When all references go out of scope, the action will be triggered (if not defused).
TriggeredAction
Closure definition for an action that can be triggered by ActionFuse.