Struct postgres_native_tls::MakeTlsConnector
source · pub struct MakeTlsConnector(/* private fields */);
Expand description
A MakeTlsConnect
implementation using the native-tls
crate.
Requires the runtime
Cargo feature (enabled by default).
Implementations§
source§impl MakeTlsConnector
impl MakeTlsConnector
sourcepub fn new(connector: TlsConnector) -> MakeTlsConnector
pub fn new(connector: TlsConnector) -> MakeTlsConnector
Creates a new connector.
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 MakeTlsConnectorwhere
S: AsyncRead + AsyncWrite + Unpin + 'static + Send,
impl<S> MakeTlsConnect<S> for MakeTlsConnectorwhere S: AsyncRead + AsyncWrite + Unpin + 'static + Send,
§type TlsConnect = TlsConnector
type TlsConnect = TlsConnector
The
TlsConnect
implementation created by this type.source§fn make_tls_connect(&mut self, domain: &str) -> Result<TlsConnector, Error>
fn make_tls_connect(&mut self, domain: &str) -> Result<TlsConnector, Error>
Creates a new
TlsConnect
or. Read moreAuto Trait Implementations§
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