Struct tokio_postgres::tls::NoTls [−][src]
pub struct NoTls;
A MakeTlsConnect and TlsConnect implementation which simply returns an error.
This can be used when sslmode is none or prefer.
Trait Implementations
impl<S> MakeTlsConnect<S> for NoTls[src]
impl<S> MakeTlsConnect<S> for NoTls[src]type Stream = NoTlsStream
The stream type created by the TlsConnect implementation.
type TlsConnect = NoTls
The TlsConnect implementation created by this type.
type Error = NoTlsError
The error type returned by the TlsConnect implementation.
fn make_tls_connect(&mut self, _: &str) -> Result<NoTls, NoTlsError>[src]
impl<S> TlsConnect<S> for NoTls[src]
impl<S> TlsConnect<S> for NoTls[src]type Stream = NoTlsStream
The stream returned by the future.
type Error = NoTlsError
The error returned by the future.
type Future = NoTlsFuture
The future returned by the connector.
fn connect(self, _: S) -> NoTlsFutureⓘNotable traits for NoTlsFuture
impl Future for NoTlsFuture type Output = Result<NoTlsStream, NoTlsError>;[src]
Notable traits for NoTlsFuture
impl Future for NoTlsFuture type Output = Result<NoTlsStream, NoTlsError>;fn can_connect(&self, _: ForcePrivateApi) -> bool[src]
Auto Trait Implementations
impl RefUnwindSafe for NoTls
impl RefUnwindSafe for NoTlsimpl UnwindSafe for NoTls
impl UnwindSafe for NoTls