Struct ntex::http::h1::H1ServiceHandler [−][src]
pub struct H1ServiceHandler<F, S, B, X, U> { /* fields omitted */ }
Expand description
Service
implementation for HTTP1 transport
Trait Implementations
impl<F, S, B, X, U> Service<Io<F>> for H1ServiceHandler<F, S, B, X, U> where
F: Filter + 'static,
S: Service<Request>,
S::Error: ResponseError + 'static,
S::Response: Into<Response<B>>,
B: MessageBody,
X: Service<Request, Response = Request>,
X::Error: ResponseError + 'static,
U: Service<(Request, Io<F>, Codec), Response = ()> + 'static,
U::Error: Display + Error,
impl<F, S, B, X, U> Service<Io<F>> for H1ServiceHandler<F, S, B, X, U> where
F: Filter + 'static,
S: Service<Request>,
S::Error: ResponseError + 'static,
S::Response: Into<Response<B>>,
B: MessageBody,
X: Service<Request, Response = Request>,
X::Error: ResponseError + 'static,
U: Service<(Request, Io<F>, Codec), Response = ()> + 'static,
U::Error: Display + Error,
type Error = DispatchError
type Error = DispatchError
Errors produced by the service.
type Future = Dispatcher<F, S, B, X, U>
type Future = Dispatcher<F, S, B, X, U>
The future response value.
Returns Ready
when the service is able to process requests. Read more
Shutdown service. Read more
Process the request and return the response asynchronously. Read more
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Auto Trait Implementations
impl<F, S, B, X, U> !RefUnwindSafe for H1ServiceHandler<F, S, B, X, U>
impl<F, S, B, X, U> !Send for H1ServiceHandler<F, S, B, X, U>
impl<F, S, B, X, U> !Sync for H1ServiceHandler<F, S, B, X, U>
impl<F, S, B, X, U> Unpin for H1ServiceHandler<F, S, B, X, U> where
B: Unpin,
F: Unpin,
impl<F, S, B, X, U> !UnwindSafe for H1ServiceHandler<F, S, B, X, U>
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert to a Service
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more