pub trait Http {
// Required method
fn send(
&self,
request: HttpRequest,
) -> impl Future<Output = Result<HttpResponse, TransportError>> + Send;
}Expand description
The HTTP port an adapter implements for the engine.
Required Methods§
Sourcefn send(
&self,
request: HttpRequest,
) -> impl Future<Output = Result<HttpResponse, TransportError>> + Send
fn send( &self, request: HttpRequest, ) -> impl Future<Output = Result<HttpResponse, TransportError>> + Send
Perform request and return the response, or a TransportError.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".