diff options
| author | Fuwn <[email protected]> | 2023-03-30 10:37:08 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-03-30 10:37:08 +0000 |
| commit | 886eacdf5b0d4d369a44bf99d25b4cfcafface47 (patch) | |
| tree | f7b1151576fc704cb14d42fae99f94a4c091e4cf /src/handler.rs | |
| parent | feat(cargo): bump version to 0.2.1 (diff) | |
| download | windmark-886eacdf5b0d4d369a44bf99d25b4cfcafface47.tar.xz windmark-886eacdf5b0d4d369a44bf99d25b4cfcafface47.zip | |
feat: overhaul response system
Diffstat (limited to 'src/handler.rs')
| -rw-r--r-- | src/handler.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/handler.rs b/src/handler.rs index c5e23e8..bd64f03 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -17,15 +17,15 @@ // SPDX-License-Identifier: GPL-3.0-only use crate::{ + response::Response, returnable, returnable::{CallbackContext, RouteContext}, - Response, }; pub type RouteResponse = - Box<dyn FnMut(RouteContext<'_>) -> Response<'_> + Send + Sync>; + Box<dyn FnMut(RouteContext<'_>) -> Response + Send + Sync>; pub type ErrorResponse = - Box<dyn FnMut(returnable::ErrorContext<'_>) -> Response<'_> + Send + Sync>; + Box<dyn FnMut(returnable::ErrorContext<'_>) -> Response + Send + Sync>; pub type Callback = Box<dyn FnMut(CallbackContext<'_>) + Send + Sync>; pub type CleanupCallback = Box<dyn FnMut(CallbackContext<'_>, &mut String) + Send + Sync>; |