[−][src]Trait reset_router::SharedService
Shared trait for route handlers. Similar to tower::Service
, but takes &self
.
Implemented for H
where
H: Fn(Request) -> F, F: Future<Output = Result<S, E>> + Send, S: Into<Response>, E: Into<Response>,
Associated Types
type Response: Into<Response>
type Error: Into<Box<dyn Error + Send + Sync + 'static>>
type Future: Future<Output = Result<Self::Response, Self::Error>> + Send
Required methods
Loading content...Implementors
impl<H, F, S, E> SharedService for H where
F: Future<Output = Result<S, E>> + Send,
S: Into<Response>,
E: Into<Response>,
H: Fn(Request) -> F,
[src]
F: Future<Output = Result<S, E>> + Send,
S: Into<Response>,
E: Into<Response>,
H: Fn(Request) -> F,