pub trait AsyncFn<S: StateSchema>: Send + Sync {
// Required method
fn call(
&self,
state: &S,
) -> Pin<Box<dyn Future<Output = NodeResult<S>> + Send>>;
}Expand description
AsyncFn trait for simpler async node creation
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".