pub trait ClosureFn<'a, Closure: 'a>:
Send
+ Sync
+ Fn(&'a Closure) -> Self::Fut {
type T;
type Fut: Send + Future<Output = Result<Self::T>>;
// Required method
fn fetch(&'a self, closure: &'a Closure) -> Self::Fut;
}Required Associated Types§
Required Methods§
fn fetch(&'a self, closure: &'a Closure) -> Self::Fut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".