Trait HandlerWithoutStateExt
trait HandlerWithoutStateExt<T>: Handler<T, ()>
Extension trait for Handlers that don't have state.
This provides convenience methods to convert the Handler into a Service or MakeService.
Required Methods
fn into_service(self: Self) -> HandlerService<Self, T, ()>Convert the handler into a
Serviceand no state.fn into_make_service(self: Self) -> IntoMakeService<HandlerService<Self, T, ()>>Convert the handler into a
MakeServiceand no state.See
HandlerService::into_make_servicefor more details.fn into_make_service_with_connect_info<C>(self: Self) -> IntoMakeServiceWithConnectInfo<HandlerService<Self, T, ()>, C>Convert the handler into a
MakeServicewhich stores information about the incoming connection and has no state.See
HandlerService::into_make_service_with_connect_infofor more details.
Implementors
impl<H, T> HandlerWithoutStateExt for Redirectimpl<H, T> HandlerWithoutStateExt for Layered<L, H, T, S>impl<H, T> HandlerWithoutStateExt for Extension<T>impl<H, T> HandlerWithoutStateExt for MethodRouter<S, E>impl<H, T> HandlerWithoutStateExt for Html<T>impl<H, T> HandlerWithoutStateExt for Sse<S>impl<H, T> HandlerWithoutStateExt for Form<T>impl<H, T> HandlerWithoutStateExt for Json<T>impl<H, T> HandlerWithoutStateExt for Himpl<H, T> HandlerWithoutStateExt for NoContent