Struct service_async::stack::FactoryStack
source · pub struct FactoryStack<C, S> { /* private fields */ }
Implementations§
source§impl<C, F> FactoryStack<C, F>
impl<C, F> FactoryStack<C, F>
sourcepub fn replace<NF>(self, factory: NF) -> FactoryStack<C, NF>
pub fn replace<NF>(self, factory: NF) -> FactoryStack<C, NF>
Replace inner with a new factory.
sourcepub fn push<L>(self, layer: L) -> FactoryStack<C, L::Factory>where
L: FactoryLayer<C, F>,
pub fn push<L>(self, layer: L) -> FactoryStack<C, L::Factory>where L: FactoryLayer<C, F>,
Push a new factory layer.
sourcepub fn push_map_target<M: Clone>(
self,
f: M
) -> FactoryStack<C, MapTargetService<F, M>>
pub fn push_map_target<M: Clone>( self, f: M ) -> FactoryStack<C, MapTargetService<F, M>>
Push a new factory of service to map the request type.
sourcepub fn check_make_svc<R>(self) -> Selfwhere
F: MakeService,
F::Service: Service<R>,
pub fn check_make_svc<R>(self) -> Selfwhere F: MakeService, F::Service: Service<R>,
Check if the stack is a factory of Service
sourcepub fn into_inner(self) -> F
pub fn into_inner(self) -> F
Get the inner factory.
sourcepub fn into_parts(self) -> (C, F)
pub fn into_parts(self) -> (C, F)
Into config and the factory.
source§impl<C, F> FactoryStack<C, F>where
F: MakeService,
impl<C, F> FactoryStack<C, F>where F: MakeService,
Auto Trait Implementations§
impl<C, S> RefUnwindSafe for FactoryStack<C, S>where C: RefUnwindSafe, S: RefUnwindSafe,
impl<C, S> Send for FactoryStack<C, S>where C: Send, S: Send,
impl<C, S> Sync for FactoryStack<C, S>where C: Sync, S: Sync,
impl<C, S> Unpin for FactoryStack<C, S>where C: Unpin, S: Unpin,
impl<C, S> UnwindSafe for FactoryStack<C, S>where C: UnwindSafe, S: 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