pub trait Guard {
type Future: Future<Output = Result<Request<Body>, Self::Responder>> + Send;
type Responder: Responder + Send;
// Required method
fn validate(&'static self, req: Request<Body>) -> Self::Future;
}
Expand description
Auto trait implementation over every function that match the definition of a guard.