pub trait AnyAsyncClient:
Any
+ Send
+ Sync
+ 'static {
// Required methods
fn describe(&self, f: &mut Formatter<'_>) -> Result;
fn request(
&self,
req: Request,
) -> BoxFuture<'_, Result<Pin<Box<dyn AnyAsyncResponse>>>>;
}Available on crate feature
async only.Expand description
Trait for type-erased async HTTP clients.
Automatically implemented for types implementing AsyncClient.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".