pub trait Service:
Send
+ Sync
+ 'static {
// Required method
fn call(&self, ctx: TaskContext) -> BoxTaskFuture;
}Expand description
Service adapter that can be converted into a TaskFactory.
Required Methods§
Sourcefn call(&self, ctx: TaskContext) -> BoxTaskFuture
fn call(&self, ctx: TaskContext) -> BoxTaskFuture
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".