pub enum SslModeNegotiation<S, C = Pristine> {
Accepted(Conn<S, TlsHandshake, C>),
Plaintext(Conn<S, PreStartup, C>),
RequiredRejected {
conn: Conn<S, Terminated, C>,
mode: SslMode,
},
LegacyError(Conn<S, Terminated, C>),
}Expand description
SSL negotiation after applying plaintext-fallback policy.
Variants§
Accepted(Conn<S, TlsHandshake, C>)
TLS was accepted and must be handshaken.
Plaintext(Conn<S, PreStartup, C>)
Mode permits continuation in plaintext.
RequiredRejected
Server rejected TLS required by the configured mode.
Fields
§
conn: Conn<S, Terminated, C>Terminal connection retaining the transport.
LegacyError(Conn<S, Terminated, C>)
Historical server error terminated negotiation.
Trait Implementations§
Auto Trait Implementations§
impl<S, C> Freeze for SslModeNegotiation<S, C>where
S: Freeze,
impl<S, C> RefUnwindSafe for SslModeNegotiation<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for SslModeNegotiation<S, C>
impl<S, C> Sync for SslModeNegotiation<S, C>
impl<S, C> Unpin for SslModeNegotiation<S, C>
impl<S, C> UnsafeUnpin for SslModeNegotiation<S, C>where
S: UnsafeUnpin,
impl<S, C> UnwindSafe for SslModeNegotiation<S, C>where
S: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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