Trait IntoEndpointService
pub trait IntoEndpointService<T>: Sealed<T, ()> {
type Service: Service<Request>;
// Required method
fn into_endpoint_service(self) -> Self::Service;
}Available on crate features
http and std only.Expand description
Accept multiple types as an endpoint service for super::WebService.
Function handlers enter a generic HTTP application context: HTTP/2 and HTTP/3
Cookie fields are joined before extraction. Existing Service<Request>
implementations retain their input unchanged, allowing transparent relays.
Required Associated Types§
Required Methods§
fn into_endpoint_service(self) -> Self::Service
fn into_endpoint_service(self) -> Self::Service
convert the type into a rama_core::Service.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".