Trait hyper_static_server::HandlerSimpleAsync[][src]

pub trait HandlerSimpleAsync: Send + Sync + 'static {
    type Future: 'static + Send + Future;
    pub fn handle(&self, _request: Request<Body>) -> Self::Future;

    pub fn wrap(self) -> HandlerSimpleAsyncWrapper<Self> { ... }
}

Associated Types

type Future: 'static + Send + Future[src]

Loading content...

Required methods

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

Loading content...

Provided methods

pub fn wrap(self) -> HandlerSimpleAsyncWrapper<Self>[src]

Loading content...

Implementors

Loading content...