Struct actix_service::boxed::BoxServiceFactory [−][src]
pub struct BoxServiceFactory<C, Req, Res, Err, InitErr>(_);
Trait Implementations
impl<C, Req, Res, Err, InitErr> ServiceFactory for BoxServiceFactory<C, Req, Res, Err, InitErr> where
Req: 'static,
Res: 'static,
Err: 'static,
InitErr: 'static,
impl<C, Req, Res, Err, InitErr> ServiceFactory for BoxServiceFactory<C, Req, Res, Err, InitErr> where
Req: 'static,
Res: 'static,
Err: 'static,
InitErr: 'static,
type Request = Req
type Request = Req
Requests handled by the created services.
type Response = Res
type Response = Res
Responses given by the created services.
type Error = Err
type Error = Err
Errors produced by the created services.
type InitError = InitErr
type InitError = InitErr
Errors potentially raised while building a service.
type Config = C
type Config = C
Service factory configuration.
type Service = BoxService<Req, Res, Err>
type Service = BoxService<Req, Res, Err>
The kind of Service
created by this factory.
Create and return a new service asynchronously.
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, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
Map this factory’s init error to a different error, returning a new service.