wrpc_interface_http

Trait ServeIncomingHandlerWasmtime

source
pub trait ServeIncomingHandlerWasmtime<Ctx> {
    // Required method
    fn handle(
        &self,
        cx: Ctx,
        request: Request<HyperIncomingBody>,
    ) -> impl Future<Output = Result<Result<Response<HyperOutgoingBody>, ErrorCode>>> + Send;
}

Required Methods§

source

fn handle( &self, cx: Ctx, request: Request<HyperIncomingBody>, ) -> impl Future<Output = Result<Result<Response<HyperOutgoingBody>, ErrorCode>>> + Send

Object Safety§

This trait is not object safe.

Implementors§