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§

1.0.0 · source§

impl<T, A> Deref for Rc<T, A>where A: Allocator, T: ?Sized,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
source§

impl<S, Req> Service<Req> for Rc<S>where S: Service<Req> + ?Sized,

§

type Response = <S as Service<Req>>::Response

Responses given by the service.
§

type Error = <S as Service<Req>>::Error

Errors produced by the service when polling readiness or executing call.
§

type Future = <S as Service<Req>>::Future

The future response value.
source§

fn poll_ready(&self, ctx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Ready when the service is able to process requests. Read more
source§

fn call(&self, request: Req) -> S::Future

Process the request and return the response asynchronously. Read more
source§

impl<S, Req> ServiceFactory<Req> for Rc<S>where S: ServiceFactory<Req>,

§

type Response = <S as ServiceFactory<Req>>::Response

Responses given by the created services.
§

type Error = <S as ServiceFactory<Req>>::Error

Errors produced by the created services.
§

type Config = <S as ServiceFactory<Req>>::Config

Service factory configuration.
§

type Service = <S as ServiceFactory<Req>>::Service

The kind of Service created by this factory.
§

type InitError = <S as ServiceFactory<Req>>::InitError

Errors potentially raised while building a service.
§

type Future = <S as ServiceFactory<Req>>::Future

The future of the Service instance.g
source§

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>,

§

type Response = <T as Transform<S, Req>>::Response

Responses produced by the service.
§

type Error = <T as Transform<S, Req>>::Error

Errors produced by the service.
§

type Transform = <T as Transform<S, Req>>::Transform

The TransformService value created by this factory
§

type InitError = <T as Transform<S, Req>>::InitError

Errors produced while building a transform service.
§

type Future = <T as Transform<S, Req>>::Future

The future response value.
source§

fn new_transform(&self, service: S) -> T::Future

Creates and returns a new Transform component, asynchronously