pub trait Runner<'a, Input, Output, Error, Context, InnerData>: Send + Sync {
// Required method
fn run(
&self,
data: InnerData,
input: Input,
context: &'a mut Context,
) -> impl Future<Output = Result<NodeOutput<Output>, Error>> + Send;
}Expand description
Required Methods§
Sourcefn run(
&self,
data: InnerData,
input: Input,
context: &'a mut Context,
) -> impl Future<Output = Result<NodeOutput<Output>, Error>> + Send
fn run( &self, data: InnerData, input: Input, context: &'a mut Context, ) -> impl Future<Output = Result<NodeOutput<Output>, Error>> + Send
Executes the runner using the provided inner data, input, and context.
§Parameters
data: Inner data used in this runner.input: The input data to process.context: Mutable reference to the a context.
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.