Trait saphir::controller::ControllerHandler
source · pub trait ControllerHandler<C, B> {
type Responder: Responder;
type Future: Future<Output = Self::Responder>;
// Required method
fn handle(&self, controller: &'static C, req: Request<B>) -> Self::Future;
}
Expand description
Trait that defines a handler within a controller. This trait is not meant to be implemented manually as there is a blanket implementation for Async Fns