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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl<H, C> ServeIncomingHandlerWasmtime<C> for Instance<H, C>
where H: Handler, C: Send + Deref<Target = Span>,