pub trait Handler<Op, Exts>where
Op: OperationShape,{
type Future: Future<Output = Result<Op::Output, Op::Error>>;
// Required method
fn call(&mut self, input: Op::Input, exts: Exts) -> Self::Future;
}Expand description
A utility trait used to provide an even interface for all operation handlers.
See operation documentation for more info.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".