pub struct RewriteAndRouteHandlerFactory<F> { /* private fields */ }Expand description
Factory for creating RewriteAndRouteHandler instances.
This factory implements the MakeService &
AsyncMakeService trait, allowing for dynamic creation and updates of
RewriteAndRouteHandler instances. It’s designed to work with the service_async crate’s
compositional model.
Trait Implementations§
Source§impl<F: AsyncMakeService> AsyncMakeService for RewriteAndRouteHandlerFactory<F>
impl<F: AsyncMakeService> AsyncMakeService for RewriteAndRouteHandlerFactory<F>
Source§type Service = RewriteAndRouteHandler<<F as AsyncMakeService>::Service>
type Service = RewriteAndRouteHandler<<F as AsyncMakeService>::Service>
The type of service this factory creates.
Source§type Error = RoutingFactoryError<<F as AsyncMakeService>::Error>
type Error = RoutingFactoryError<<F as AsyncMakeService>::Error>
The type of error that can occur during service creation.
Source§impl<F: MakeService> MakeService for RewriteAndRouteHandlerFactory<F>
impl<F: MakeService> MakeService for RewriteAndRouteHandlerFactory<F>
Source§type Service = RewriteAndRouteHandler<<F as MakeService>::Service>
type Service = RewriteAndRouteHandler<<F as MakeService>::Service>
The type of service this factory creates.
Source§type Error = RoutingFactoryError<<F as MakeService>::Error>
type Error = RoutingFactoryError<<F as MakeService>::Error>
The type of error that can occur during service creation.
Auto Trait Implementations§
impl<F> Freeze for RewriteAndRouteHandlerFactory<F>where
F: Freeze,
impl<F> RefUnwindSafe for RewriteAndRouteHandlerFactory<F>where
F: RefUnwindSafe,
impl<F> Send for RewriteAndRouteHandlerFactory<F>where
F: Send,
impl<F> Sync for RewriteAndRouteHandlerFactory<F>where
F: Sync,
impl<F> Unpin for RewriteAndRouteHandlerFactory<F>where
F: Unpin,
impl<F> UnwindSafe for RewriteAndRouteHandlerFactory<F>where
F: 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