Re-restrict Handler & HandlerResponse

This commit is contained in:
Emi Tatsuo 2020-11-19 22:35:35 -05:00
parent dc18bf2d1c
commit 10c957aee5
Signed by: Emi
GPG key ID: 68FAB2E2E6DFC98B

View file

@ -35,8 +35,8 @@ pub use types::*;
pub const REQUEST_URI_MAX_LEN: usize = 1024;
pub const GEMINI_PORT: u16 = 1965;
pub type Handler = Arc<dyn Fn(Request) -> HandlerResponse + Send + Sync>;
pub type HandlerResponse = BoxFuture<'static, Result<Response>>;
pub (crate) type Handler = Arc<dyn Fn(Request) -> HandlerResponse + Send + Sync>;
pub (crate) type HandlerResponse = BoxFuture<'static, Result<Response>>;
#[derive(Clone)]
pub struct Server {