pub struct UnitConfig<A, C> { /* private fields */ }Expand description
unit_config() config combinator
Trait Implementations§
Source§impl<A, C> Clone for UnitConfig<A, C>where
A: Clone,
impl<A, C> Clone for UnitConfig<A, C>where
A: Clone,
Source§impl<A, C> ServiceFactory for UnitConfig<A, C>where
A: ServiceFactory<Config = ()>,
impl<A, C> ServiceFactory for UnitConfig<A, C>where
A: ServiceFactory<Config = ()>,
Source§type Request = <A as ServiceFactory>::Request
type Request = <A as ServiceFactory>::Request
Requests handled by the service.
Source§type Response = <A as ServiceFactory>::Response
type Response = <A as ServiceFactory>::Response
Responses given by the service
Source§type Error = <A as ServiceFactory>::Error
type Error = <A as ServiceFactory>::Error
Errors produced by the service
Source§type Service = <A as ServiceFactory>::Service
type Service = <A as ServiceFactory>::Service
The
Service value created by this factorySource§type InitError = <A as ServiceFactory>::InitError
type InitError = <A as ServiceFactory>::InitError
Errors produced while building a service.
Source§type Future = <A as ServiceFactory>::Future
type Future = <A as ServiceFactory>::Future
The future of the
Service instance.Source§fn new_service(&self, _: C) -> Self::Future
fn new_service(&self, _: C) -> Self::Future
Create and return a new service value asynchronously.
Source§fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R>
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R>
Map this service’s output to a different type, returning a new service
of the resulting type.
Source§fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E>
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E>
Map this service’s error to a different error, returning a new service.
Source§fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E>
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E>
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations§
impl<A, C> Freeze for UnitConfig<A, C>where
A: Freeze,
impl<A, C> RefUnwindSafe for UnitConfig<A, C>where
A: RefUnwindSafe,
C: RefUnwindSafe,
impl<A, C> Send for UnitConfig<A, C>
impl<A, C> Sync for UnitConfig<A, C>
impl<A, C> Unpin for UnitConfig<A, C>
impl<A, C> UnwindSafe for UnitConfig<A, C>where
A: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoServiceFactory<T> for Twhere
T: ServiceFactory,
impl<T> IntoServiceFactory<T> for Twhere
T: ServiceFactory,
Source§fn into_factory(self) -> T
fn into_factory(self) -> T
Convert
Self to a ServiceFactory