Struct ntex::io::utils::FilterServiceFactory [−][src]
pub struct FilterServiceFactory<T, F> { /* fields omitted */ }
Trait Implementations
impl<T, F> ServiceFactory<Io<F>, ()> for FilterServiceFactory<T, F> where
T: FilterFactory<F> + Clone,
F: Filter,
impl<T, F> ServiceFactory<Io<F>, ()> for FilterServiceFactory<T, F> where
T: FilterFactory<F> + Clone,
F: Filter,
type Response = Io<<T as FilterFactory<F>>::Filter>
type Response = Io<<T as FilterFactory<F>>::Filter>
Responses given by the service
type Error = <T as FilterFactory<F>>::Error
type Error = <T as FilterFactory<F>>::Error
Errors produced by the service
type Service = FilterService<T, F>
type Service = FilterService<T, F>
The Service
value created by this factory
type Future = Ready<<FilterServiceFactory<T, F> as ServiceFactory<Io<F>, ()>>::Service, <FilterServiceFactory<T, F> as ServiceFactory<Io<F>, ()>>::InitError>
type Future = Ready<<FilterServiceFactory<T, F> as ServiceFactory<Io<F>, ()>>::Service, <FilterServiceFactory<T, F> as ServiceFactory<Io<F>, ()>>::InitError>
The future of the ServiceFactory
instance.
pub fn new_service(
&self,
()
) -> <FilterServiceFactory<T, F> as ServiceFactory<Io<F>, ()>>::Future
pub fn new_service(
&self,
()
) -> <FilterServiceFactory<T, F> as ServiceFactory<Io<F>, ()>>::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<T, F> RefUnwindSafe for FilterServiceFactory<T, F> where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for FilterServiceFactory<T, F> where
F: Send,
T: Send,
impl<T, F> Sync for FilterServiceFactory<T, F> where
F: Sync,
T: Sync,
impl<T, F> Unpin for FilterServiceFactory<T, F> where
F: Unpin,
T: Unpin,
impl<T, F> UnwindSafe for FilterServiceFactory<T, F> where
F: UnwindSafe,
T: 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