Trait hyper_simple_server::Handler [−][src]
Associated Types
type Future: Future<Output = ServerResult<Response<Self::ResponseBody>>> + Send + 'static
[src]
type ResponseBody: BodyTrait<Data = Bytes, Error = Self::ResponseBodyError> + Send + 'static
[src]
type ResponseBodyError: Error + Send + Sync + 'static
[src]
Required methods
Loading content...Provided methods
fn wrap(self) -> HandlerWrapper<Self> where
Self: Sized,
[src]
Self: Sized,
Implementors
impl Handler for EmbeddedResource
[src]
type Future = Ready<ServerResult<Response<Self::ResponseBody>>>
type ResponseBody = BodyWrapper<Body>
type ResponseBodyError = ServerError
fn handle(&self, _request: Request<Body>) -> Self::Future
[src]
impl Handler for FileResource
[src]
type Future = Ready<ServerResult<Response<Self::ResponseBody>>>
type ResponseBody = BodyWrapper<Body>
type ResponseBodyError = ServerError
fn handle(&self, _request: Request<Body>) -> Self::Future
[src]
impl Handler for HandlerDynArc
[src]
type Future = HandlerFutureDynBox
type ResponseBody = BodyDynBox
type ResponseBodyError = ServerError
fn handle(&self, _request: Request<Body>) -> Self::Future
[src]
impl Handler for Routes
[src]
type Future = HandlerFutureDynBox
type ResponseBody = BodyDynBox
type ResponseBodyError = ServerError
fn handle(&self, _request: Request<Body>) -> Self::Future
[src]
impl Handler for StaticResource
[src]
type Future = Ready<ServerResult<Response<Self::ResponseBody>>>
type ResponseBody = BodyWrapper<Body>
type ResponseBodyError = ServerError
fn handle(&self, _request: Request<Body>) -> Self::Future
[src]
impl<C, F, RB> Handler for HandlerFnAsync<C, F, RB> where
C: Fn(Request<Body>) -> F + Send + Sync + 'static,
F: Future<Output = ServerResult<Response<RB>>> + Send + 'static,
RB: BodyTrait<Data = Bytes> + Send + 'static,
RB::Error: Error + Send + Sync + 'static,
[src]
C: Fn(Request<Body>) -> F + Send + Sync + 'static,
F: Future<Output = ServerResult<Response<RB>>> + Send + 'static,
RB: BodyTrait<Data = Bytes> + Send + 'static,
RB::Error: Error + Send + Sync + 'static,
type Future = F
type ResponseBody = RB
type ResponseBodyError = RB::Error
fn handle(&self, _request: Request<Body>) -> Self::Future
[src]
impl<C, RB> Handler for HandlerFnSync<C, RB> where
C: Fn(Request<Body>) -> ServerResult<Response<RB>> + Send + Sync + 'static,
RB: BodyTrait<Data = Bytes> + Send + 'static,
RB::Error: Error + Send + Sync + 'static,
[src]
C: Fn(Request<Body>) -> ServerResult<Response<RB>> + Send + Sync + 'static,
RB: BodyTrait<Data = Bytes> + Send + 'static,
RB::Error: Error + Send + Sync + 'static,
type Future = Ready<ServerResult<Response<RB>>>
type ResponseBody = RB
type ResponseBodyError = RB::Error
fn handle(&self, _request: Request<Body>) -> Self::Future
[src]
impl<H> Handler for HandlerSimpleAsyncWrapper<H> where
H: HandlerSimpleAsync,
H::Future: Unpin,
[src]
H: HandlerSimpleAsync,
H::Future: Unpin,
type Future = HandlerSimpleAsyncWrapperFuture<H::Future>
type ResponseBody = BodyWrapper<Body>
type ResponseBodyError = ServerError
fn handle(&self, _request: Request<Body>) -> Self::Future
[src]
impl<H> Handler for HandlerSimpleSyncWrapper<H> where
H: HandlerSimpleSync,
[src]
H: HandlerSimpleSync,