Struct ntex::http::h1::UpgradeHandler [−][src]
pub struct UpgradeHandler<T>(_);
Trait Implementations
impl<T> Service for UpgradeHandler<T>
[src]
impl<T> Service for UpgradeHandler<T>
[src]fn poll_ready(&self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
[src]
fn poll_ready(&self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
[src]Returns Ready
when the service is able to process requests. Read more
fn call(&self, _: Self::Request) -> Self::Future
[src]
fn call(&self, _: Self::Request) -> Self::Future
[src]Process the request and return the response asynchronously. Read more
fn poll_shutdown(&self, ctx: &mut Context<'_>, is_error: bool) -> Poll<()>
[src]
fn poll_shutdown(&self, ctx: &mut Context<'_>, is_error: bool) -> Poll<()>
[src]Shutdown service. Read more
impl<T> ServiceFactory for UpgradeHandler<T>
[src]
impl<T> ServiceFactory for UpgradeHandler<T>
[src]type Service = UpgradeHandler<T>
type Service = UpgradeHandler<T>
The Service
value created by this factory
fn new_service(&self, _: ()) -> Self::Future
[src]
fn new_service(&self, _: ()) -> Self::Future
[src]Create and return a new service value asynchronously.
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R> where
F: FnMut(Self::Response) -> R + Clone,
[src]
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R> where
F: FnMut(Self::Response) -> R + Clone,
[src]Map this service’s output to a different type, returning a new service of the resulting type. Read more
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E> where
F: Fn(Self::Error) -> E + Clone,
[src]
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E> where
F: Fn(Self::Error) -> E + Clone,
[src]Map this service’s error to a different error, returning a new service.
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
F: Fn(Self::InitError) -> E + Clone,
[src]
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
F: Fn(Self::InitError) -> E + Clone,
[src]Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations
impl<T> RefUnwindSafe for UpgradeHandler<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for UpgradeHandler<T> where
T: Send,
T: Send,
impl<T> Sync for UpgradeHandler<T> where
T: Sync,
T: Sync,
impl<T> Unpin for UpgradeHandler<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for UpgradeHandler<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> IntoService<T> for T where
T: Service,
[src]
impl<T> IntoService<T> for T where
T: Service,
[src]pub fn into_service(self) -> T
[src]
pub fn into_service(self) -> T
[src]Convert to a Service
impl<T> IntoServiceFactory<T> for T where
T: ServiceFactory,
[src]
impl<T> IntoServiceFactory<T> for T where
T: ServiceFactory,
[src]pub fn into_factory(self) -> T
[src]
pub fn into_factory(self) -> T
[src]Convert Self
to a ServiceFactory
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self