Struct ntex::service::boxed::BoxServiceFactory [−][src]
pub struct BoxServiceFactory<C, Req, Res, Err, InitErr>(_);
Trait Implementations
impl<C, Req, Res, Err, InitErr> ServiceFactory<Req, C> for BoxServiceFactory<C, Req, Res, Err, InitErr> where
Req: 'static,
Res: 'static,
Err: 'static,
InitErr: 'static,
impl<C, Req, Res, Err, InitErr> ServiceFactory<Req, C> 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 service
type Error = Err
type Error = Err
Errors produced by the service
type InitError = InitErr
type InitError = InitErr
Errors produced while building a service.
The Service
value created by this factory
type Future = Pin<Box<dyn Future<Output = Result<<BoxServiceFactory<C, Req, Res, Err, InitErr> as ServiceFactory<Req, C>>::Service, InitErr>> + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<BoxServiceFactory<C, Req, Res, Err, InitErr> as ServiceFactory<Req, C>>::Service, InitErr>> + 'static, Global>>
The future of the ServiceFactory
instance.
pub fn new_service(
&self,
cfg: C
) -> <BoxServiceFactory<C, Req, Res, Err, InitErr> as ServiceFactory<Req, C>>::Future
pub fn new_service(
&self,
cfg: C
) -> <BoxServiceFactory<C, Req, Res, Err, InitErr> as ServiceFactory<Req, C>>::Future
Create and return a new service value 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, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations
impl<C, Req, Res, Err, InitErr> !RefUnwindSafe for BoxServiceFactory<C, Req, Res, Err, InitErr>
impl<C, Req, Res, Err, InitErr> !Send for BoxServiceFactory<C, Req, Res, Err, InitErr>
impl<C, Req, Res, Err, InitErr> !Sync for BoxServiceFactory<C, Req, Res, Err, InitErr>
impl<C, Req, Res, Err, InitErr> Unpin for BoxServiceFactory<C, Req, Res, Err, InitErr>
impl<C, Req, Res, Err, InitErr> !UnwindSafe for BoxServiceFactory<C, Req, Res, Err, InitErr>
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Self
to a ServiceFactory
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more