Skip to main content

IntoEndpointServiceWithState

Trait IntoEndpointServiceWithState 

pub trait IntoEndpointServiceWithState<T, State>: Sealed<T, State> {
    type Service: Service<Request>;

    // Required method
    fn into_endpoint_service_with_state(self, state: State) -> Self::Service;
}
Available on crate feature http only.

Required Associated Types§

Required Methods§

fn into_endpoint_service_with_state(self, state: State) -> Self::Service

convert the type into a rama_core::Service with state.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl<F, T, State> IntoEndpointServiceWithState<(F, T), State> for F
where F: EndpointServiceFn<T, State>, T: Send + 'static, State: Send + Sync + Clone + 'static,

§

impl<O, State> IntoEndpointServiceWithState<(), State> for Result<O, Infallible>
where O: Clone + Send + Sync + 'static,

§

impl<O, State> IntoEndpointServiceWithState<Response, State> for O
where O: IntoResponse + Clone + Send + Sync + 'static,

§

impl<S, State> IntoEndpointServiceWithState<(S,), State> for S
where S: Service<Request>,

§

type Service = S