pub enum Negotiation<S, Handshake, C = Pristine> {
Accepted(Conn<S, Handshake, C>),
Rejected(Conn<S, PreStartup, C>),
LegacyError(Conn<S, Terminated, C>),
}Expand description
A reply whose branches deliberately have different typestates.
Variants§
Accepted(Conn<S, Handshake, C>)
Encryption accepted; complete the transport handshake next.
Rejected(Conn<S, PreStartup, C>)
Encryption rejected; plaintext pre-startup choice resumes.
LegacyError(Conn<S, Terminated, C>)
Historical E response terminated negotiation.
Trait Implementations§
Auto Trait Implementations§
impl<S, Handshake, C> Freeze for Negotiation<S, Handshake, C>where
S: Freeze,
impl<S, Handshake, C> RefUnwindSafe for Negotiation<S, Handshake, C>
impl<S, Handshake, C> Send for Negotiation<S, Handshake, C>
impl<S, Handshake, C> Sync for Negotiation<S, Handshake, C>
impl<S, Handshake, C> Unpin for Negotiation<S, Handshake, C>
impl<S, Handshake, C> UnsafeUnpin for Negotiation<S, Handshake, C>where
S: UnsafeUnpin,
impl<S, Handshake, C> UnwindSafe for Negotiation<S, Handshake, C>
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