pub struct TlsConnector<'domain> { /* private fields */ }
Expand description
Connects to the PostgreSQL server.
Implementations§
Source§impl<'domain> TlsConnector<'domain>
impl<'domain> TlsConnector<'domain>
Sourcepub fn new<'dom: 'domain>(
connector: TlsConnector,
domain: &'dom str,
) -> Result<Self, InvalidDnsNameError>
pub fn new<'dom: 'domain>( connector: TlsConnector, domain: &'dom str, ) -> Result<Self, InvalidDnsNameError>
Returns Self
based on connector
and domain
.
§Errors
Errors iff ServerName::try_from
does when passed domain
.
Trait Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin> TlsConnect<S> for TlsConnector<'static>
impl<S: AsyncRead + AsyncWrite + Unpin> TlsConnect<S> for TlsConnector<'static>
Source§type Future = TlsConnectorFuture<S>
type Future = TlsConnectorFuture<S>
The future returned by the connector.
Auto Trait Implementations§
impl<'domain> Freeze for TlsConnector<'domain>
impl<'domain> !RefUnwindSafe for TlsConnector<'domain>
impl<'domain> Send for TlsConnector<'domain>
impl<'domain> Sync for TlsConnector<'domain>
impl<'domain> Unpin for TlsConnector<'domain>
impl<'domain> !UnwindSafe for TlsConnector<'domain>
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