wrpc_interface_http

Trait InvokeOutgoingHandler

Source
pub trait InvokeOutgoingHandler: Invoke {
    // Provided method
    fn invoke_handle_wasmtime(
        &self,
        cx: Self::Context,
        request: Request<HyperOutgoingBody>,
        options: OutgoingRequestConfig,
    ) -> impl Future<Output = Result<(Result<Response<HyperIncomingBody>, ErrorCode>, impl Stream<Item = HttpBodyError<ErrorCode>> + 'static, Option<impl Future<Output = Result<()>> + 'static>)>>
       where Self: Sized { ... }
}

Provided Methods§

Source

fn invoke_handle_wasmtime( &self, cx: Self::Context, request: Request<HyperOutgoingBody>, options: OutgoingRequestConfig, ) -> impl Future<Output = Result<(Result<Response<HyperIncomingBody>, ErrorCode>, impl Stream<Item = HttpBodyError<ErrorCode>> + 'static, Option<impl Future<Output = Result<()>> + 'static>)>>
where Self: Sized,

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§