Struct tokio_postgres_rustls::MakeRustlsConnect
source · pub struct MakeRustlsConnect { /* private fields */ }
Implementations§
source§impl MakeRustlsConnect
impl MakeRustlsConnect
pub fn new(config: ClientConfig) -> Self
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
§type Stream = RustlsStream<S>
type Stream = RustlsStream<S>
The stream type created by the
TlsConnect
implementation.§type TlsConnect = RustlsConnect
type TlsConnect = RustlsConnect
The
TlsConnect
implementation created by this type.§type Error = InvalidDnsNameError
type Error = InvalidDnsNameError
The error type returned by the
TlsConnect
implementation.source§fn make_tls_connect(
&mut self,
hostname: &str
) -> Result<RustlsConnect, Self::Error>
fn make_tls_connect( &mut self, hostname: &str ) -> Result<RustlsConnect, 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