pub trait StaticHandler<R, Req, Dependencies>: Clone {
type Response;
type Error;
// Required method
fn handle(
self,
resources: &R,
value: Req,
) -> impl Future<Output = Result<Self::Response, Self::Error>> + Send;
}Expand description
A statically dispatched async handler function.
Required Associated Types§
Required Methods§
fn handle( self, resources: &R, value: Req, ) -> impl Future<Output = Result<Self::Response, Self::Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".