Trait HandlerWithoutStateExt
pub 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) -> HandlerService<Self, T, ()>Convert the handler into a
Serviceand no state.fn into_make_service(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) -> 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<T> for Extension<T> where H: Handler<T, ()>,impl<H, T> HandlerWithoutStateExt<T> for Form<T> where H: Handler<T, ()>,impl<H, T> HandlerWithoutStateExt<T> for H where H: Handler<T, ()>,impl<H, T> HandlerWithoutStateExt<T> for Html<T> where H: Handler<T, ()>,impl<H, T> HandlerWithoutStateExt<T> for Json<T> where H: Handler<T, ()>,impl<H, T> HandlerWithoutStateExt<T> for Layered<L, H, T, S> where H: Handler<T, ()>,impl<H, T> HandlerWithoutStateExt<T> for MethodRouter<S, E> where H: Handler<T, ()>,impl<H, T> HandlerWithoutStateExt<T> for NoContent where H: Handler<T, ()>,impl<H, T> HandlerWithoutStateExt<T> for Redirect where H: Handler<T, ()>,impl<H, T> HandlerWithoutStateExt<T> for Sse<S> where H: Handler<T, ()>,