pub struct ClientTls { /* private fields */ }Expand description
Loaded outbound TLS material, holding its own rotation watch.
Implementations§
Source§impl ClientTls
impl ClientTls
Sourcepub fn client(
&self,
request_timeout: Duration,
maximum_response_bytes: usize,
) -> Result<HttpClient, OutboundError>
pub fn client( &self, request_timeout: Duration, maximum_response_bytes: usize, ) -> Result<HttpClient, OutboundError>
A client presenting this destination’s identity, under its own limits.
Deliberately not drawn from a shared connector: an identity and a pinned authority belong to the destination that configured them, and pooling connections across destinations would mean presenting one service’s certificate to another. The cost is one connection pool per destination that asks for mutual TLS, which is what asking for it means.
Auto Trait Implementations§
impl !RefUnwindSafe for ClientTls
impl !UnwindSafe for ClientTls
impl Freeze for ClientTls
impl Send for ClientTls
impl Sync for ClientTls
impl Unpin for ClientTls
impl UnsafeUnpin for ClientTls
Blanket Implementations§
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