pub trait AccessorTask<'fut, T, D = HasSelf<T>>:
AsyncFnOnce(&Accessor<T, D>) -> Result<(), Error>
+ Send
+ 'static{
// Required method
fn run(
self,
accessor: &'fut Accessor<T, D>,
) -> impl Future<Output = Result<(), Error>> + Send + 'fut;
}Expand description
Represents an async closure which may be provided to Accessor::spawn,
Accessor::forward, or StoreContextMut::spawn.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".