Type Alias TlsConnr

Source
pub type TlsConnr = HttpsConnector<HttpConnector>;

Aliased Type§

pub struct TlsConnr { /* private fields */ }

Trait Implementations

Source§

impl<T> Clone for HttpsConnector<T>
where T: Clone,

Source§

fn clone(&self) -> HttpsConnector<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Debug for HttpsConnector<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

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

Source§

fn from(_: (H, C)) -> HttpsConnector<H>

Converts to this type from the input type.
Source§

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

Source§

type Response = MaybeHttpsStream<<T as Service<Uri>>::Response>

Responses given by the service.
Source§

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

Errors produced by the service.
Source§

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

The future response value.
Source§

fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <HttpsConnector<T> as Service<Uri>>::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
Source§

fn call(&mut self, dst: Uri) -> <HttpsConnector<T> as Service<Uri>>::Future

Process the request and return the response asynchronously. Read more