Struct postgres::tls::native_tls::NativeTls
[−]
[src]
pub struct NativeTls(_);
A TlsHandshake
implementation that uses the native-tls crate.
Requires the with-native-tls
feature.
Methods
impl NativeTls
[src]
fn new() -> Result<NativeTls, Error>
Creates a new NativeTls
with its default configuration.
fn connector(&self) -> &TlsConnector
Returns a reference to the inner TlsConnector
.
fn connector_mut(&mut self) -> &mut TlsConnector
Returns a mutable reference to the inner TlsConnector
.
Trait Implementations
impl Debug for NativeTls
[src]
impl From<TlsConnector> for NativeTls
[src]
fn from(connector: TlsConnector) -> NativeTls
Performs the conversion.