pub trait Client: Sync + Send {
type Error: Error + Send + Sync + 'static;
// Required method
fn req(
&self,
request: Request<Vec<u8>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>, <Self as Client>::Error>> + Send + '_>>;
}
Available on crate feature
client
only.Expand description
A client that can do OAUTH2 requests