pub trait Client: Sync + Send {
type Error: Error + Send + Sync + 'static;
// Required method
fn req(
&self,
request: Request<Vec<u8>>,
) -> impl Future<Output = Result<Response<Vec<u8>>, <Self as Client>::Error>> + Send + use<Self>;
}Available on crate feature
client only.Expand description
A client that can do OAUTH2 requests
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".