Trait HttpSendDyn
pub trait HttpSendDyn:
Debug
+ Send
+ Sync
+ 'static {
// Required method
fn http_send_dyn(
&self,
req: Request<Bytes>,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, Error>> + Send + '_>>;
}Available on crate feature
reqsign only.Expand description
HttpSendDyn is the dyn version of HttpSend.
Required Methods§
fn http_send_dyn(
&self,
req: Request<Bytes>,
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, Error>> + Send + '_>>
fn http_send_dyn( &self, req: Request<Bytes>, ) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>, Error>> + Send + '_>>
Dyn version of HttpSend::http_send.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".