pub struct ServerHandler<Pub, Ctl> { /* private fields */ }Expand description
Http2 connections handler
Implementations§
Source§impl<Pub, Ctl> ServerHandler<Pub, Ctl>
impl<Pub, Ctl> ServerHandler<Pub, Ctl>
Trait Implementations§
Source§impl<Pub, Ctl> Clone for ServerHandler<Pub, Ctl>
impl<Pub, Ctl> Clone for ServerHandler<Pub, Ctl>
Source§impl<F, Pub, Ctl> Service<Io<F>> for ServerHandler<Pub, Ctl>
impl<F, Pub, Ctl> Service<Io<F>> for ServerHandler<Pub, Ctl>
Source§type Error = ServerError<()>
type Error = ServerError<()>
Errors produced by the service when polling readiness or executing call.
Source§async fn call(
&self,
req: Io<F>,
_: ServiceCtx<'_, Self>,
) -> Result<Self::Response, Self::Error>
async fn call( &self, req: Io<F>, _: ServiceCtx<'_, Self>, ) -> Result<Self::Response, Self::Error>
Process the request and return the response asynchronously. Read more
Source§async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is able to process requests. Read more
Source§fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
Polls service from the current task. Read more
Source§impl<Pub, Ctl> Service<IoBoxed> for ServerHandler<Pub, Ctl>
impl<Pub, Ctl> Service<IoBoxed> for ServerHandler<Pub, Ctl>
Source§type Error = ServerError<()>
type Error = ServerError<()>
Errors produced by the service when polling readiness or executing call.
Source§async fn call(
&self,
io: IoBoxed,
_: ServiceCtx<'_, Self>,
) -> Result<Self::Response, Self::Error>
async fn call( &self, io: IoBoxed, _: ServiceCtx<'_, Self>, ) -> Result<Self::Response, Self::Error>
Process the request and return the response asynchronously. Read more
Source§async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is able to process requests. Read more
Source§fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
Polls service from the current task. Read more
Auto Trait Implementations§
impl<Pub, Ctl> Freeze for ServerHandler<Pub, Ctl>
impl<Pub, Ctl> !RefUnwindSafe for ServerHandler<Pub, Ctl>
impl<Pub, Ctl> !Send for ServerHandler<Pub, Ctl>
impl<Pub, Ctl> !Sync for ServerHandler<Pub, Ctl>
impl<Pub, Ctl> Unpin for ServerHandler<Pub, Ctl>
impl<Pub, Ctl> !UnwindSafe for ServerHandler<Pub, Ctl>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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