pub trait HttpClient {
// Required methods
fn user_agent(&mut self, user_agent: String);
async fn get<'a, I>(&self, base_url: &str, args: I) -> Result<String, Error>
where I: Iterator<Item = (&'a str, &'a str)>;
}Required Methods§
fn user_agent(&mut self, user_agent: String)
async fn get<'a, I>(&self, base_url: &str, args: I) -> Result<String, Error>
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.