pub trait RequestHandler {
type Response;
// Required method
fn handle(
self,
garage: &Arc<Garage>,
admin: &Admin,
) -> impl Future<Output = Result<Self::Response, Error>> + Send;
}Required Associated Types§
Required Methods§
fn handle( self, garage: &Arc<Garage>, admin: &Admin, ) -> impl Future<Output = Result<Self::Response, Error>> + Send
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.