pub struct BoxServiceFactory<F, Req> {
pub inner: F,
/* private fields */
}
Expand description
BoxServiceFactory
wraps a service factory and produces BoxedService
instances,
allowing for type erasure in service creation pipelines.
Fields§
§inner: F
Implementations§
Source§impl<F, Req> BoxServiceFactory<F, Req>
impl<F, Req> BoxServiceFactory<F, Req>
Trait Implementations§
Source§impl<F, Req> AsyncMakeService for BoxServiceFactory<F, Req>
impl<F, Req> AsyncMakeService for BoxServiceFactory<F, Req>
Source§type Service = BoxedService<Req, <<F as AsyncMakeService>::Service as Service<Req>>::Response, <<F as AsyncMakeService>::Service as Service<Req>>::Error>
type Service = BoxedService<Req, <<F as AsyncMakeService>::Service as Service<Req>>::Response, <<F as AsyncMakeService>::Service as Service<Req>>::Error>
The type of service this factory creates.
Source§type Error = <F as AsyncMakeService>::Error
type Error = <F as AsyncMakeService>::Error
The type of error that can occur during service creation.
Source§impl<F, Req> MakeService for BoxServiceFactory<F, Req>
impl<F, Req> MakeService for BoxServiceFactory<F, Req>
Source§type Service = BoxedService<Req, <<F as MakeService>::Service as Service<Req>>::Response, <<F as MakeService>::Service as Service<Req>>::Error>
type Service = BoxedService<Req, <<F as MakeService>::Service as Service<Req>>::Response, <<F as MakeService>::Service as Service<Req>>::Error>
The type of service this factory creates.
Source§type Error = <F as MakeService>::Error
type Error = <F as MakeService>::Error
The type of error that can occur during service creation.
impl<F: Send, Req> Send for BoxServiceFactory<F, Req>
impl<F: Sync, Req> Sync for BoxServiceFactory<F, Req>
Auto Trait Implementations§
impl<F, Req> Freeze for BoxServiceFactory<F, Req>where
F: Freeze,
impl<F, Req> RefUnwindSafe for BoxServiceFactory<F, Req>where
F: RefUnwindSafe,
Req: RefUnwindSafe,
impl<F, Req> Unpin for BoxServiceFactory<F, Req>
impl<F, Req> UnwindSafe for BoxServiceFactory<F, Req>where
F: UnwindSafe,
Req: 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