pub trait ThreadAwareAsyncFnOnce<T>: ThreadAware {
// Required method
fn call_once(self: Box<Self>) -> BoxFuture<'static, T>;
}Expand description
Async equivalent of ThreadAwareFnOnce - calls the closure once, returning a BoxFuture.
Use async_closure_once to construct an implementation.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".