[][src]Struct hyper_rustls::HttpsConnector

pub struct HttpsConnector<T> { /* fields omitted */ }

A Connector for the https scheme.

Implementations

impl HttpsConnector<HttpConnector>[src]

pub fn new() -> Self[src]

Construct a new HttpsConnector.

Takes number of DNS worker threads.

Trait Implementations

impl<T: Clone> Clone for HttpsConnector<T>[src]

impl<T> Debug for HttpsConnector<T>[src]

impl Default for HttpsConnector<HttpConnector>[src]

impl<H, C> From<(H, C)> for HttpsConnector<H> where
    C: Into<Arc<ClientConfig>>, 
[src]

impl<T> Service<Uri> for HttpsConnector<T> where
    T: Service<Uri>,
    T::Response: Connection + AsyncRead + AsyncWrite + Send + Unpin + 'static,
    T::Future: Send + 'static,
    T::Error: Into<Box<dyn Error + Send + Sync>>, 
[src]

type Response = MaybeHttpsStream<T::Response>

Responses given by the service.

type Error = Box<dyn Error + Send + Sync>

Errors produced by the service.

type Future = Pin<Box<dyn Future<Output = Result<MaybeHttpsStream<T::Response>, Box<dyn Error + Send + Sync>>> + Send>>

The future response value.

Auto Trait Implementations

impl<T> !RefUnwindSafe for HttpsConnector<T>

impl<T> Send for HttpsConnector<T> where
    T: Send

impl<T> Sync for HttpsConnector<T> where
    T: Sync

impl<T> Unpin for HttpsConnector<T> where
    T: Unpin

impl<T> !UnwindSafe for HttpsConnector<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S, T> Connect for S where
    S: Service<Uri, Response = T> + Send + 'static,
    T: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,
    <S as Service<Uri>>::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
    <S as Service<Uri>>::Future: Unpin,
    <S as Service<Uri>>::Future: Send
[src]

type _Svc = S

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.