Struct ntex::io::utils::BoxedFactory [−][src]
pub struct BoxedFactory<S, R> { /* fields omitted */ }
Implementations
Trait Implementations
impl<S, R, C, F> ServiceFactory<R, C> for BoxedFactory<S, R> where
F: Filter,
S: ServiceFactory<R, C, Response = Io<F>>,
impl<S, R, C, F> ServiceFactory<R, C> for BoxedFactory<S, R> where
F: Filter,
S: ServiceFactory<R, C, Response = Io<F>>,
type Error = <S as ServiceFactory<R, C>>::Error
type Error = <S as ServiceFactory<R, C>>::Error
Errors produced by the service
type Service = Boxed<<S as ServiceFactory<R, C>>::Service, R>
type Service = Boxed<<S as ServiceFactory<R, C>>::Service, R>
The Service
value created by this factory
type InitError = <S as ServiceFactory<R, C>>::InitError
type InitError = <S as ServiceFactory<R, C>>::InitError
Errors produced while building a service.
type Future = BoxedFactoryResponse<S, R, C>
type Future = BoxedFactoryResponse<S, R, C>
The future of the ServiceFactory
instance.
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<S, R> RefUnwindSafe for BoxedFactory<S, R> where
R: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, R> Send for BoxedFactory<S, R> where
R: Send,
S: Send,
impl<S, R> Sync for BoxedFactory<S, R> where
R: Sync,
S: Sync,
impl<S, R> Unpin for BoxedFactory<S, R> where
R: Unpin,
S: Unpin,
impl<S, R> UnwindSafe for BoxedFactory<S, R> where
R: UnwindSafe,
S: UnwindSafe,
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