pub trait HttpTransport: Send + Sync {
// Required methods
fn execute(
&self,
req: Request,
) -> impl Future<Output = Result<Response, TransportError>> + Send;
fn stream(
&self,
req: Request,
) -> impl Future<Output = Result<StreamResponse, TransportError>> + Send;
}Required Methods§
fn execute( &self, req: Request, ) -> impl Future<Output = Result<Response, TransportError>> + Send
fn stream( &self, req: Request, ) -> impl Future<Output = Result<StreamResponse, TransportError>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".