Struct ntex_h2::server::ServerHandler
source · [−]pub struct ServerHandler<Ctl, Pub>(_);Expand description
Http2 connections handler
Implementations
sourceimpl<Ctl, Pub> ServerHandler<Ctl, Pub> where
Ctl: ServiceFactory<ControlMessage<Pub::Error>, Response = ControlResult> + 'static,
Ctl::Error: Debug,
Ctl::InitError: Debug,
Pub: ServiceFactory<Message, Response = ()> + 'static,
Pub::Error: Debug,
Pub::InitError: Debug,
impl<Ctl, Pub> ServerHandler<Ctl, Pub> where
Ctl: ServiceFactory<ControlMessage<Pub::Error>, Response = ControlResult> + 'static,
Ctl::Error: Debug,
Ctl::InitError: Debug,
Pub: ServiceFactory<Message, Response = ()> + 'static,
Pub::Error: Debug,
Pub::InitError: Debug,
Trait Implementations
sourceimpl<Ctl, Pub> Clone for ServerHandler<Ctl, Pub>
impl<Ctl, Pub> Clone for ServerHandler<Ctl, Pub>
sourceimpl<F, Ctl, Pub> Service<Io<F>> for ServerHandler<Ctl, Pub> where
F: Filter,
Ctl: ServiceFactory<ControlMessage<Pub::Error>, Response = ControlResult> + 'static,
Ctl::Error: Debug,
Ctl::InitError: Debug,
Pub: ServiceFactory<Message, Response = ()> + 'static,
Pub::Error: Debug,
Pub::InitError: Debug,
impl<F, Ctl, Pub> Service<Io<F>> for ServerHandler<Ctl, Pub> where
F: Filter,
Ctl: ServiceFactory<ControlMessage<Pub::Error>, Response = ControlResult> + 'static,
Ctl::Error: Debug,
Ctl::InitError: Debug,
Pub: ServiceFactory<Message, Response = ()> + 'static,
Pub::Error: Debug,
Pub::InitError: Debug,
type Error = ServerError<()>
type Error = ServerError<()>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<<ServerHandler<Ctl, Pub> as Service<Io<F>>>::Response, <ServerHandler<Ctl, Pub> as Service<Io<F>>>::Error>> + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<ServerHandler<Ctl, Pub> as Service<Io<F>>>::Response, <ServerHandler<Ctl, Pub> as Service<Io<F>>>::Error>> + 'static, Global>>
The future response value.
sourcefn poll_ready(&self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns Ready when the service is able to process requests. Read more
sourcefn poll_shutdown(&self, _: &mut Context<'_>, _is_error: bool) -> Poll<()>
fn poll_shutdown(&self, _: &mut Context<'_>, _is_error: bool) -> Poll<()>
Shutdown service. Read more
sourcefn call(&self, req: Io<F>) -> Self::Future
fn call(&self, req: Io<F>) -> Self::Future
Process the request and return the response asynchronously. Read more
sourceimpl<Ctl, Pub> Service<IoBoxed> for ServerHandler<Ctl, Pub> where
Ctl: ServiceFactory<ControlMessage<Pub::Error>, Response = ControlResult> + 'static,
Ctl::Error: Debug,
Ctl::InitError: Debug,
Pub: ServiceFactory<Message, Response = ()> + 'static,
Pub::Error: Debug,
Pub::InitError: Debug,
impl<Ctl, Pub> Service<IoBoxed> for ServerHandler<Ctl, Pub> where
Ctl: ServiceFactory<ControlMessage<Pub::Error>, Response = ControlResult> + 'static,
Ctl::Error: Debug,
Ctl::InitError: Debug,
Pub: ServiceFactory<Message, Response = ()> + 'static,
Pub::Error: Debug,
Pub::InitError: Debug,
type Error = ServerError<()>
type Error = ServerError<()>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<<ServerHandler<Ctl, Pub> as Service<IoBoxed>>::Response, <ServerHandler<Ctl, Pub> as Service<IoBoxed>>::Error>> + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<ServerHandler<Ctl, Pub> as Service<IoBoxed>>::Response, <ServerHandler<Ctl, Pub> as Service<IoBoxed>>::Error>> + 'static, Global>>
The future response value.
sourcefn poll_ready(&self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns Ready when the service is able to process requests. Read more
sourcefn poll_shutdown(&self, _: &mut Context<'_>, _is_error: bool) -> Poll<()>
fn poll_shutdown(&self, _: &mut Context<'_>, _is_error: bool) -> Poll<()>
Shutdown service. Read more
sourcefn call(&self, io: IoBoxed) -> Self::Future
fn call(&self, io: IoBoxed) -> Self::Future
Process the request and return the response asynchronously. Read more
Auto Trait Implementations
impl<Ctl, Pub> !RefUnwindSafe for ServerHandler<Ctl, Pub>
impl<Ctl, Pub> !Send for ServerHandler<Ctl, Pub>
impl<Ctl, Pub> !Sync for ServerHandler<Ctl, Pub>
impl<Ctl, Pub> Unpin for ServerHandler<Ctl, Pub>
impl<Ctl, Pub> !UnwindSafe for ServerHandler<Ctl, Pub>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, Req> IntoService<T, Req> for T where
T: Service<Req>,
impl<T, Req> IntoService<T, Req> for T where
T: Service<Req>,
sourcefn into_service(self) -> T
fn into_service(self) -> T
Convert to a Service