Trait BasicHttpClientTrait

Source
pub trait BasicHttpClientTrait
where Self: HttpClientTrait,
{ // Provided method fn request<'life0, 'async_trait, R, O, E, U>( &'life0 self, request: R, ) -> 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> + Send + 'static + 'async_trait, R: HttpRequest<O, E, U> + Serialize + Send + 'static + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait { ... } }

Provided Methods§

Source

fn request<'life0, 'async_trait, R, O, E, U>( &'life0 self, request: R, ) -> 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> + Send + 'static + 'async_trait, R: HttpRequest<O, E, U> + Serialize + 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.

Implementors§