ruma::client::http_client

Trait DefaultConstructibleHttpClient

Source
pub trait DefaultConstructibleHttpClient: HttpClient {
    // Required method
    fn default() -> Self;
}
Available on crate feature client only.
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.

Implementations on Foreign Types§

Source§

impl DefaultConstructibleHttpClient for Client<HttpsConnector<HttpConnector>, Full<Bytes>>

Available on crate feature hyper-native-tls only.
Source§

impl DefaultConstructibleHttpClient for Client<HttpConnector, Full<Bytes>>

Available on crate feature hyper only.
Source§

impl DefaultConstructibleHttpClient for Client

Implementors§