1 2 3 4 5
use crate::http::Request; pub trait Middleware: Send + Sync { fn handle(&self, _req: &Request, _next: Box<dyn FnOnce(&Request) + Send>); }