pub trait Client:
Send
+ Sync
+ 'static {
type Error: StdError + Send + Sync + 'static;
// Required method
fn execute(
&self,
req: Request<ReqBody>,
upgraded: Option<OnUpgrade>,
) -> impl Future<Output = Result<Response<ResBody>, Self::Error>> + Send;
}Expand description
Client trait.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.