Trait hyper_simple_server::HandlerSimpleAsync[][src]

pub trait HandlerSimpleAsync where
    Self: Send + Sync + 'static, 
{ type Future: Future<Output = ServerResult<Response<Body>>> + Send + 'static; fn handle(&self, _request: Request<Body>) -> Self::Future; fn wrap(self) -> HandlerSimpleAsyncWrapper<Self>
    where
        Self: Sized
, { ... } }

Associated Types

type Future: Future<Output = ServerResult<Response<Body>>> + Send + 'static[src]

Loading content...

Required methods

fn handle(&self, _request: Request<Body>) -> Self::Future[src]

Loading content...

Provided methods

fn wrap(self) -> HandlerSimpleAsyncWrapper<Self> where
    Self: Sized
[src]

Loading content...

Implementors

Loading content...