wrpc_interface_http

Trait ServeOutgoingHandlerHttp

source
pub trait ServeOutgoingHandlerHttp<Ctx> {
    // Required method
    fn handle(
        &self,
        cx: Ctx,
        request: Request<HttpBody>,
        options: Option<RequestOptions>,
    ) -> impl Future<Output = Result<Result<Response<impl Body<Data = Bytes, Error = Infallible> + Send + 'static>, ErrorCode>>> + Send;
}

Required Methods§

source

fn handle( &self, cx: Ctx, request: Request<HttpBody>, options: Option<RequestOptions>, ) -> impl Future<Output = Result<Result<Response<impl Body<Data = Bytes, Error = Infallible> + Send + 'static>, ErrorCode>>> + Send

Object Safety§

This trait is not object safe.

Implementors§