pub struct MakeRustlsConnect { /* private fields */ }
Expand description
A MakeTlsConnect
implementation using rustls
.
That way you can connect to PostgreSQL using rustls
as the TLS stack.
Implementations§
source§impl MakeRustlsConnect
impl MakeRustlsConnect
sourcepub fn new(config: ClientConfig) -> Self
pub fn new(config: ClientConfig) -> Self
Creates a new MakeRustlsConnect
from the provided ClientConfig
.
Trait Implementations§
source§impl Clone for MakeRustlsConnect
impl Clone for MakeRustlsConnect
source§fn clone(&self) -> MakeRustlsConnect
fn clone(&self) -> MakeRustlsConnect
Returns a copy 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 moresource§impl<S> MakeTlsConnect<S> for MakeRustlsConnect
impl<S> MakeTlsConnect<S> for MakeRustlsConnect
source§type TlsConnect = RustlsConnect
type TlsConnect = RustlsConnect
The
TlsConnect
implementation created by this type.source§type Error = InvalidDnsNameError
type Error = InvalidDnsNameError
The error type returned by the
TlsConnect
implementation.source§fn make_tls_connect(
&mut self,
hostname: &str,
) -> Result<Self::TlsConnect, Self::Error>
fn make_tls_connect( &mut self, hostname: &str, ) -> Result<Self::TlsConnect, Self::Error>
Creates a new
TlsConnect
or. Read moreAuto Trait Implementations§
impl Freeze for MakeRustlsConnect
impl !RefUnwindSafe for MakeRustlsConnect
impl Send for MakeRustlsConnect
impl Sync for MakeRustlsConnect
impl Unpin for MakeRustlsConnect
impl !UnwindSafe for MakeRustlsConnect
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)