diff options
| author | Fuwn <[email protected]> | 2023-04-05 03:03:26 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-05 03:03:26 +0000 |
| commit | 44d6b539a37d7f1c9055c43c882239805d78ab8a (patch) | |
| tree | 3c67aca7932b8c5e3bae9003fa826d722f51d5ab /src | |
| parent | fix(module): bring back (diff) | |
| download | windmark-44d6b539a37d7f1c9055c43c882239805d78ab8a.tar.xz windmark-44d6b539a37d7f1c9055c43c882239805d78ab8a.zip | |
style(router): add associated types
Diffstat (limited to 'src')
| -rw-r--r-- | src/router.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/router.rs b/src/router.rs index 69849fb..940bda0 100644 --- a/src/router.rs +++ b/src/router.rs @@ -67,16 +67,16 @@ macro_rules! or_error { #[derive(Clone)] pub struct Router { routes: matchit::Router<Arc<AsyncMutex<Box<dyn RouteResponse>>>>, - error_handler: Arc<Mutex<Box<dyn ErrorResponse>>>, + error_handler: Arc<Mutex<Box<dyn ErrorResponse<Output = Response>>>>, private_key_file_name: String, ca_file_name: String, - headers: Arc<Mutex<Vec<Box<dyn Partial>>>>, - footers: Arc<Mutex<Vec<Box<dyn Partial>>>>, + headers: Arc<Mutex<Vec<Box<dyn Partial<Output = String>>>>>, + footers: Arc<Mutex<Vec<Box<dyn Partial<Output = String>>>>>, ssl_acceptor: Arc<SslAcceptor>, #[cfg(feature = "logger")] default_logger: bool, - pre_route_callback: Arc<Mutex<Box<dyn PreRouteHook>>>, - post_route_callback: Arc<Mutex<Box<dyn PostRouteHook>>>, + pre_route_callback: Arc<Mutex<Box<dyn PreRouteHook<Output = ()>>>>, + post_route_callback: Arc<Mutex<Box<dyn PostRouteHook<Output = ()>>>>, character_set: String, languages: Vec<String>, port: i32, |