pub trait AuthenticatedHttpClientTraitwhere
Self: HttpClientTrait,{
// Provided method
fn request<'life0, 'async_trait, R, O, E, U, A>(
&'life0 self,
request: R,
auth: A,
) -> Pin<Box<dyn Future<Output = Result<Result<O, E>, UnexpectedHttpError<U>>> + Send + 'async_trait>>
where O: for<'de> Deserialize<'de> + Send + 'static + 'async_trait,
E: for<'de> Deserialize<'de> + Send + 'static + 'async_trait,
U: for<'de> Deserialize<'de> + Clone + 'async_trait,
R: HttpRequest<O, E, U> + Serialize + AuthenticatedHttpRequest<A> + Send + 'static + 'async_trait,
A: Auth + Send + 'static + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Provided Methods§
fn request<'life0, 'async_trait, R, O, E, U, A>(
&'life0 self,
request: R,
auth: A,
) -> Pin<Box<dyn Future<Output = Result<Result<O, E>, UnexpectedHttpError<U>>> + Send + 'async_trait>>where
O: for<'de> Deserialize<'de> + Send + 'static + 'async_trait,
E: for<'de> Deserialize<'de> + Send + 'static + 'async_trait,
U: for<'de> Deserialize<'de> + Clone + 'async_trait,
R: HttpRequest<O, E, U> + Serialize + AuthenticatedHttpRequest<A> + Send + 'static + 'async_trait,
A: Auth + Send + 'static + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait,
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.