Struct actix_http::h1::UpgradeHandler
source · [−]pub struct UpgradeHandler;Trait Implementations
impl<T> ServiceFactory<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)> for UpgradeHandler
impl<T> ServiceFactory<(Request<Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>> + 'static, Global>>>, Framed<T, Codec>)> for UpgradeHandler
type Service = UpgradeHandler
type Service = UpgradeHandler
The kind of Service created by this factory.
type Future = LocalBoxFuture<'static, Result<Self::Service, Self::InitError>>
type Future = LocalBoxFuture<'static, Result<Self::Service, Self::InitError>>
The future of the Service instance.g
Create and return a new service asynchronously.
Auto Trait Implementations
impl RefUnwindSafe for UpgradeHandler
impl Send for UpgradeHandler
impl Sync for UpgradeHandler
impl Unpin for UpgradeHandler
impl UnwindSafe for UpgradeHandler
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert to a Service
Convert Self to a ServiceFactory
Map this service’s output to a different type, returning a new service of the resulting type. Read more
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, Req, E> where
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, Req, E> where
F: Fn(Self::InitError) -> E + Clone,
Map this factory’s init error to a different error, returning a new service.
Call another service after call to this one has resolved successfully.
