pub trait Task<I, D>: Send + Sync {
// Required methods
fn id(&self) -> I;
fn run(
&self,
inputs: HashMap<I, Input<'_, D>>,
) -> impl Future<Output = Option<D>> + Send + Sync;
// Provided methods
fn dependencies(&self) -> Vec<I> { ... }
fn is_auto(&self) -> bool { ... }
}Required Methods§
fn id(&self) -> I
fn run( &self, inputs: HashMap<I, Input<'_, D>>, ) -> impl Future<Output = Option<D>> + Send + Sync
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.