pub struct ClientTlsConfig { /* private fields */ }Expand description
Application-owned TLS material resolved afresh for a connection attempt.
The application owns reload and rotation of destination names and trust
anchors. pg-proto deliberately constructs the final rustls verifier from
the selected SslMode, so a provider cannot silently
weaken VerifyCa or VerifyFull.
Implementations§
Source§impl ClientTlsConfig
impl ClientTlsConfig
Sourcepub fn new(server_name: ServerName<'static>, roots: RootCertStore) -> Self
pub fn new(server_name: ServerName<'static>, roots: RootCertStore) -> Self
Creates resolved TLS material.
Trait Implementations§
Source§impl Clone for ClientTlsConfig
impl Clone for ClientTlsConfig
Source§fn clone(&self) -> ClientTlsConfig
fn clone(&self) -> ClientTlsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientTlsConfig
impl RefUnwindSafe for ClientTlsConfig
impl Send for ClientTlsConfig
impl Sync for ClientTlsConfig
impl Unpin for ClientTlsConfig
impl UnsafeUnpin for ClientTlsConfig
impl UnwindSafe for ClientTlsConfig
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