Struct actix_service::boxed::BoxServiceFactory
source · [−]pub struct BoxServiceFactory<Cfg, Req, Res, Err, InitErr>(_);
Expand description
Wrapper for a service factory that will map it’s services to boxed trait object services.
Trait Implementations
sourceimpl<C, Req, Res, Err, InitErr> ServiceFactory<Req> for BoxServiceFactory<C, Req, Res, Err, InitErr> where
Req: 'static,
Res: 'static,
Err: 'static,
InitErr: 'static,
impl<C, Req, Res, Err, InitErr> ServiceFactory<Req> for BoxServiceFactory<C, Req, Res, Err, InitErr> where
Req: 'static,
Res: 'static,
Err: 'static,
InitErr: 'static,
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 Config = C
type Config = C
Service factory configuration.
type Service = Box<dyn Service<Req, Response = Res, Future = Pin<Box<dyn Future<Output = Result<Res, Err>> + 'static, Global>>, Error = Err> + 'static, Global>
type Service = Box<dyn Service<Req, Response = Res, Future = Pin<Box<dyn Future<Output = Result<Res, Err>> + 'static, Global>>, Error = Err> + 'static, Global>
The kind of Service
created by this factory.
type InitError = InitErr
type InitError = InitErr
Errors potentially raised while building a service.
type Future = Pin<Box<dyn Future<Output = Result<<BoxServiceFactory<C, Req, Res, Err, InitErr> as ServiceFactory<Req>>::Service, InitErr>> + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<BoxServiceFactory<C, Req, Res, Err, InitErr> as ServiceFactory<Req>>::Service, InitErr>> + 'static, Global>>
The future of the Service
instance.g
sourcefn new_service(&self, cfg: C) -> Self::Future
fn new_service(&self, cfg: C) -> Self::Future
Create and return a new service asynchronously.
Auto Trait Implementations
impl<Cfg, Req, Res, Err, InitErr> !RefUnwindSafe for BoxServiceFactory<Cfg, Req, Res, Err, InitErr>
impl<Cfg, Req, Res, Err, InitErr> !Send for BoxServiceFactory<Cfg, Req, Res, Err, InitErr>
impl<Cfg, Req, Res, Err, InitErr> !Sync for BoxServiceFactory<Cfg, Req, Res, Err, InitErr>
impl<Cfg, Req, Res, Err, InitErr> Unpin for BoxServiceFactory<Cfg, Req, Res, Err, InitErr>
impl<Cfg, Req, Res, Err, InitErr> !UnwindSafe for BoxServiceFactory<Cfg, Req, Res, Err, InitErr>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<SF, Req> IntoServiceFactory<SF, Req> for SF where
SF: ServiceFactory<Req>,
impl<SF, Req> IntoServiceFactory<SF, Req> for SF where
SF: ServiceFactory<Req>,
sourcefn into_factory(self) -> SF
fn into_factory(self) -> SF
Convert Self
to a ServiceFactory