Struct tokio_postgres::tls::NoTls [−][src]
pub struct NoTls;
Expand description
A MakeTlsConnect
and TlsConnect
implementation which simply returns an error.
This can be used when sslmode
is none
or prefer
.
Trait Implementations
type Stream = NoTlsStream
type Stream = NoTlsStream
The stream type created by the TlsConnect
implementation.
type TlsConnect = NoTls
type TlsConnect = NoTls
The TlsConnect
implementation created by this type.
type Error = NoTlsError
type Error = NoTlsError
The error type returned by the TlsConnect
implementation.
Creates a new TlsConnect
or. Read more
type Stream = NoTlsStream
type Stream = NoTlsStream
The stream returned by the future.
type Error = NoTlsError
type Error = NoTlsError
The error returned by the future.
type Future = NoTlsFuture
type Future = NoTlsFuture
The future returned by the connector.
fn connect(self, _: S) -> NoTlsFutureⓘNotable traits for NoTlsFutureimpl Future for NoTlsFuture type Output = Result<NoTlsStream, NoTlsError>;
fn connect(self, _: S) -> NoTlsFutureⓘNotable traits for NoTlsFutureimpl Future for NoTlsFuture type Output = Result<NoTlsStream, NoTlsError>;
Notable traits for NoTlsFuture
impl Future for NoTlsFuture type Output = Result<NoTlsStream, NoTlsError>;
Returns a future performing a TLS handshake over the stream.
Auto Trait Implementations
impl RefUnwindSafe for NoTls
impl UnwindSafe for NoTls
Blanket Implementations
Mutably borrows from an owned value. Read more