ruma_client::http_client

Trait DefaultConstructibleHttpClient

Source
pub trait DefaultConstructibleHttpClient: HttpClient {
    // Required method
    fn default() -> Self;
}
Expand description

An HTTP client that has a default configuration.

Required Methods§

Source

fn default() -> Self

Creates a new HTTP client with default configuration.

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§

Source§

impl DefaultConstructibleHttpClient for Hyper

Available on crate feature hyper only.
Source§

impl DefaultConstructibleHttpClient for HyperNativeTls

Available on crate features hyper and hyper-native-tls only.
Source§

impl DefaultConstructibleHttpClient for Reqwest

Available on crate feature reqwest only.