Expand description
§Runnable Types
Provides fallible, one-time, zero-argument actions.
A Runnable<E> is equivalent to FnOnce() -> Result<(), E>, but uses
task-oriented vocabulary. Use it when the operation’s side effect matters
and only success or failure should be reported.
The trait itself does not require Send; concurrent executors should add
+ Send + 'static at their API boundary.
§Author
Haixing Hu
Structs§
- BoxRunnable
- Box-based one-time runnable.
Traits§
- Runnable
- A fallible one-time action.