Trait rama::service::handler::FromContextRequest
pub trait FromContextRequest<State, Request>: Send + 'static {
// Required method
fn from_context_request(ctx: Context<State>, req: Request) -> Self;
}
Expand description
Convert a context+request into a parameter for the ServiceFn
handler function.
Required Methods§
fn from_context_request(ctx: Context<State>, req: Request) -> Self
fn from_context_request(ctx: Context<State>, req: Request) -> Self
Convert a context+request into a parameter for the ServiceFn
handler function.
Object Safety§
This trait is not object safe.