pub trait IntoEndpointService<State, T>: Sealed<T> {
// Required method
fn into_endpoint_service(
self,
) -> impl Service<State, Request, Response = Response, Error = Infallible>;
}
Expand description
utility trait to accept multiple types as an endpoint service for super::WebService
Required Methods§
Sourcefn into_endpoint_service(
self,
) -> impl Service<State, Request, Response = Response, Error = Infallible>
fn into_endpoint_service( self, ) -> impl Service<State, Request, Response = Response, Error = Infallible>
convert the type into a rama_core::Service
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.