Trait tk_http::server::buffered::NewService [] [src]

pub trait NewService<S> {
    type Future: Future<Item = EncoderDone<S>, Error = Error>;
    type Instance: Service<S, Future = Self::Future>;
    fn new(&self) -> Self::Instance;
}

A trait that you must implement to reply on requests, usually a function

Associated Types

Future returned by the service (an actual function serving request)

Instance of the service, created for each request

Required Methods

Constructor of the instance of the service, created for each request

Implementors