pub struct CachedTlsClient {
pub http_client: Client<HttpsConnector<HttpConnector>, Body>,
pub http2_client: Client<HttpsConnector<HttpConnector>, Body>,
pub config: TlsClientConfig,
pub last_access: Instant,
}Expand description
Cached TLS client with configuration
Fields§
§http_client: Client<HttpsConnector<HttpConnector>, Body>HTTP/1.1 client with TLS support
http2_client: Client<HttpsConnector<HttpConnector>, Body>HTTP/2 client with TLS support
config: TlsClientConfigConfiguration used to create this client
last_access: InstantLast access timestamp for cache eviction
Trait Implementations§
Source§impl Clone for CachedTlsClient
impl Clone for CachedTlsClient
Source§fn clone(&self) -> CachedTlsClient
fn clone(&self) -> CachedTlsClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CachedTlsClient
impl !RefUnwindSafe for CachedTlsClient
impl Send for CachedTlsClient
impl Sync for CachedTlsClient
impl Unpin for CachedTlsClient
impl !UnwindSafe for CachedTlsClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more