Trait IntoEndpointService
pub trait IntoEndpointService<State, T>: Sealed<T> {
// Required method
fn into_endpoint_service(
self,
) -> impl Service<State, Request<Body>, Response = Response<Body>, Error = Infallible>;
}
Expand description
utility trait to accept multiple types as an endpoint service for super::WebService
Required Methods§
fn into_endpoint_service(
self,
) -> impl Service<State, Request<Body>, Response = Response<Body>, Error = Infallible>
fn into_endpoint_service( self, ) -> impl Service<State, Request<Body>, Response = Response<Body>, Error = Infallible>
convert the type into a rama_core::Service
.
Object Safety§
This trait is not object safe.