pub trait Handler<Ctx> {
// Required method
fn handle(
&self,
cx: Ctx,
request: Request,
options: Option<RequestOptions>,
) -> impl Future<Output = Result<Result<Response, ErrorCode>>> + Send;
}
Required Methods§
fn handle( &self, cx: Ctx, request: Request, options: Option<RequestOptions>, ) -> impl Future<Output = Result<Result<Response, ErrorCode>>> + Send
Object Safety§
This trait is not object safe.