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§

source

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.

Implementors§

source§

impl<Ctx, T> Handler<Ctx> for ServeHttp<T>
where T: ServeOutgoingHandlerHttp<Ctx> + Sync, Ctx: Send,