wrpc_interface_http

Trait InvokeIncomingHandler

source
pub trait InvokeIncomingHandler: Invoke {
    // Provided method
    fn invoke_handle_http<E>(
        &self,
        cx: Self::Context,
        request: Request<impl Body<Data = Bytes, Error = E> + Send + 'static>,
    ) -> impl Future<Output = Result<(Result<Response<HttpBody>, ErrorCode>, impl Stream<Item = HttpBodyError<E>> + 'static, Option<impl Future<Output = Result<()>> + 'static>)>>
       where Self: Sized,
             E: Send + 'static { ... }
}

Provided Methods§

source

fn invoke_handle_http<E>( &self, cx: Self::Context, request: Request<impl Body<Data = Bytes, Error = E> + Send + 'static>, ) -> impl Future<Output = Result<(Result<Response<HttpBody>, ErrorCode>, impl Stream<Item = HttpBodyError<E>> + 'static, Option<impl Future<Output = Result<()>> + 'static>)>>
where Self: Sized, E: Send + 'static,

Object Safety§

This trait is not object safe.

Implementors§