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