Type Alias actix_service::boxed::BoxService

source ·
pub type BoxService<Req, Res, Err> = Box<dyn Service<Req, Response = Res, Error = Err, Future = BoxFuture<Result<Res, Err>>>>;
Expand description

Type alias for service trait object using Box.

Aliased Type§

struct BoxService<Req, Res, Err>(/* private fields */);

Trait Implementations§

1.0.0 · source§

impl<T, A> Deref for Box<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 Box<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<(), S::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