Expand description
§Runnable Types
Provides fallible, reusable, zero-argument actions.
A Runnable<E> is equivalent to FnMut() -> 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§
- ArcRunnable
- Thread-safe runnable.
- BoxRunnable
- Box-based reusable runnable.
- RcRunnable
- Single-threaded shared runnable.
Traits§
- Runnable
- A fallible, reusable, zero-argument action.