Expand description
§CallableWith Types
Provides fallible, reusable computations that operate on a mutable input.
A CallableWith<T, R, E> is equivalent to
FnMut(&mut T) -> Result<R, E>, but uses task-oriented vocabulary. Use it
when the operation needs access to protected or caller-provided state and
returns a success value.
The trait itself does not require Send; concurrent executors should add
+ Send + 'static at their API boundary.
§Author
Haixing Hu
Structs§
- ArcCallable
With - Thread-safe shared callable with mutable input.
- BoxCallable
With - Box-based callable with mutable input.
- RcCallable
With - Single-threaded shared callable with mutable input.
Traits§
- Callable
With - A fallible, reusable computation that receives mutable input.