Trait AsyncRecoverableFunction
Source pub trait AsyncRecoverableFunction:
Send
+ Sync
+ 'static {
type Output: Send;
type Future: Future<Output = Self::Output> + Send;
// Required method
fn call(self) -> Self::Future;
}
Expand description
Trait alias for asynchronous functions that can be executed in a recoverable context.
§Arguments
FnOnce() -> Future
- Function that returns a Future.
§Returns
Future
- The asynchronous computation result.
Executes the asynchronous function.