Struct ntex::http::h1::H1ServiceHandler
source · pub struct H1ServiceHandler<F, S, B, C> { /* private fields */ }
Expand description
Service
implementation for HTTP1 transport
Trait Implementations§
source§impl<F, S, B, C> Service<Io<F>> for H1ServiceHandler<F, S, B, C>where
F: Filter,
C: Service<Control<F, S::Error>, Response = ControlAck> + 'static,
C::Error: Error,
S: Service<Request> + 'static,
S::Error: ResponseError,
S::Response: Into<Response<B>>,
B: MessageBody,
impl<F, S, B, C> Service<Io<F>> for H1ServiceHandler<F, S, B, C>where
F: Filter,
C: Service<Control<F, S::Error>, Response = ControlAck> + 'static,
C::Error: Error,
S: Service<Request> + 'static,
S::Error: ResponseError,
S::Response: Into<Response<B>>,
B: MessageBody,
§type Error = DispatchError
type Error = DispatchError
Errors produced by the service when polling readiness or executing call.
source§async fn ready(&self, _: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, _: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is able to process requests. Read more
source§async fn call(
&self,
io: Io<F>,
_: ServiceCtx<'_, Self>
) -> Result<(), Self::Error>
async fn call( &self, io: Io<F>, _: ServiceCtx<'_, Self> ) -> Result<(), Self::Error>
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<F, S, B, C> Freeze for H1ServiceHandler<F, S, B, C>
impl<F, S, B, C> !RefUnwindSafe for H1ServiceHandler<F, S, B, C>
impl<F, S, B, C> !Send for H1ServiceHandler<F, S, B, C>
impl<F, S, B, C> !Sync for H1ServiceHandler<F, S, B, C>
impl<F, S, B, C> Unpin for H1ServiceHandler<F, S, B, C>
impl<F, S, B, C> !UnwindSafe for H1ServiceHandler<F, S, B, C>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
source§fn into_service(self) -> Svc
fn into_service(self) -> Svc
Convert to a
Service