Type Alias actix_service::boxed::RcService
source · pub type RcService<Req, Res, Err> = Rc<dyn Service<Req, Response = Res, Error = Err, Future = BoxFuture<Result<Res, Err>>>>;
Expand description
Type alias for service trait object using Rc
.
Aliased Type§
struct RcService<Req, Res, Err> { /* private fields */ }
Trait Implementations§
source§impl<S, Req> Service<Req> for Rc<S>where
S: Service<Req> + ?Sized,
impl<S, Req> Service<Req> for Rc<S>where S: Service<Req> + ?Sized,
source§impl<S, Req> ServiceFactory<Req> for Rc<S>where
S: ServiceFactory<Req>,
impl<S, Req> ServiceFactory<Req> for Rc<S>where S: ServiceFactory<Req>,
§type Response = <S as ServiceFactory<Req>>::Response
type Response = <S as ServiceFactory<Req>>::Response
Responses given by the created services.
§type Error = <S as ServiceFactory<Req>>::Error
type Error = <S as ServiceFactory<Req>>::Error
Errors produced by the created services.
§type Config = <S as ServiceFactory<Req>>::Config
type Config = <S as ServiceFactory<Req>>::Config
Service factory configuration.
§type Service = <S as ServiceFactory<Req>>::Service
type Service = <S as ServiceFactory<Req>>::Service
The kind of
Service
created by this factory.§type InitError = <S as ServiceFactory<Req>>::InitError
type InitError = <S as ServiceFactory<Req>>::InitError
Errors potentially raised while building a service.
§type Future = <S as ServiceFactory<Req>>::Future
type Future = <S as ServiceFactory<Req>>::Future
The future of the
Service
instance.gsource§fn new_service(&self, cfg: S::Config) -> S::Future
fn new_service(&self, cfg: S::Config) -> S::Future
Create and return a new service asynchronously.
source§impl<T, S, Req> Transform<S, Req> for Rc<T>where
T: Transform<S, Req>,
impl<T, S, Req> Transform<S, Req> for Rc<T>where T: Transform<S, Req>,
§type Transform = <T as Transform<S, Req>>::Transform
type Transform = <T as Transform<S, Req>>::Transform
The
TransformService
value created by this factory§type InitError = <T as Transform<S, Req>>::InitError
type InitError = <T as Transform<S, Req>>::InitError
Errors produced while building a transform service.
source§fn new_transform(&self, service: S) -> T::Future
fn new_transform(&self, service: S) -> T::Future
Creates and returns a new Transform component, asynchronously