Struct postgres_openssl::MakeTlsConnector
source · pub struct MakeTlsConnector { /* private fields */ }
Expand description
A MakeTlsConnect
implementation using the openssl
crate.
Requires the runtime
Cargo feature (enabled by default).
Implementations§
source§impl MakeTlsConnector
impl MakeTlsConnector
sourcepub fn new(connector: SslConnector) -> MakeTlsConnector
pub fn new(connector: SslConnector) -> MakeTlsConnector
Creates a new connector.
sourcepub fn set_callback<F>(&mut self, f: F)
pub fn set_callback<F>(&mut self, f: F)
Sets a callback used to apply per-connection configuration.
The the callback is provided the domain name along with the ConnectConfiguration
.
Trait Implementations§
source§impl Clone for MakeTlsConnector
impl Clone for MakeTlsConnector
source§fn clone(&self) -> MakeTlsConnector
fn clone(&self) -> MakeTlsConnector
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 MakeTlsConnector
impl<S> MakeTlsConnect<S> for MakeTlsConnector
§type TlsConnect = TlsConnector
type TlsConnect = TlsConnector
The
TlsConnect
implementation created by this type.§type Error = ErrorStack
type Error = ErrorStack
The error type returned by the
TlsConnect
implementation.source§fn make_tls_connect(&mut self, domain: &str) -> Result<TlsConnector, ErrorStack>
fn make_tls_connect(&mut self, domain: &str) -> Result<TlsConnector, ErrorStack>
Creates a new
TlsConnect
or. Read moreAuto Trait Implementations§
impl Freeze for MakeTlsConnector
impl !RefUnwindSafe for MakeTlsConnector
impl Send for MakeTlsConnector
impl Sync for MakeTlsConnector
impl Unpin for MakeTlsConnector
impl !UnwindSafe for MakeTlsConnector
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)