[][src]Enum c3p0_pg::r2d2::postgres::TlsMode

pub enum TlsMode<'a> where
    'a: 'a, 
{ None, Prefer(&'a (dyn TlsHandshake + 'a)), Require(&'a (dyn TlsHandshake + 'a)), }

Specifies the TLS support requested for a new connection.

Variants

None

The connection will not use TLS.

Prefer(&'a (dyn TlsHandshake + 'a))

The connection will use TLS if the backend supports it.

Require(&'a (dyn TlsHandshake + 'a))

The connection must use TLS.

Trait Implementations

impl<'a> Debug for TlsMode<'a>[src]

Auto Trait Implementations

impl<'a> !Sync for TlsMode<'a>

impl<'a> !Send for TlsMode<'a>

impl<'a> Unpin for TlsMode<'a>

impl<'a> !RefUnwindSafe for TlsMode<'a>

impl<'a> !UnwindSafe for TlsMode<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self