Expand description
§RunnableWith Types
Provides fallible, reusable actions that operate on a mutable input.
A RunnableWith<T, E> is equivalent to
FnMut(&mut T) -> Result<(), E>, but uses task-oriented vocabulary. Use it
when the operation needs access to protected or caller-provided state 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
With - Thread-safe shared runnable with mutable input.
- BoxRunnable
With - Box-based runnable with mutable input.
- RcRunnable
With - Single-threaded shared runnable with mutable input.
Traits§
- Runnable
With - A fallible, reusable action that receives mutable input.