pub enum EncryptionReply {
Accepted,
Rejected,
LegacyError,
}Expand description
The server’s single-byte answer to an SSL request.
Variants§
Accepted
Server sent S and requires an in-place encryption handshake.
Rejected
Server sent N and declined encryption.
LegacyError
Historical server sent E and terminated the connection.
Implementations§
Trait Implementations§
Source§impl AcceptsMessage<EncryptionReply> for RuntimeState
impl AcceptsMessage<EncryptionReply> for RuntimeState
Source§fn accepts(&self, message: &EncryptionReply) -> bool
fn accepts(&self, message: &EncryptionReply) -> bool
Reports whether
message is legal without advancing this state.Source§impl AcceptsMessage<EncryptionReply> for RuntimeState
impl AcceptsMessage<EncryptionReply> for RuntimeState
Source§fn accepts(&self, message: &EncryptionReply) -> bool
fn accepts(&self, message: &EncryptionReply) -> bool
Reports whether
message is legal without advancing this state.Source§impl AsRef<EncryptionReply> for PreStartupExternalMessage
impl AsRef<EncryptionReply> for PreStartupExternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for AwaitingSslReplyExternalMessage
impl AsRef<EncryptionReply> for AwaitingSslReplyExternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for AwaitingGssReplyExternalMessage
impl AsRef<EncryptionReply> for AwaitingGssReplyExternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for TlsHandshakeExternalMessage
impl AsRef<EncryptionReply> for TlsHandshakeExternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for GssHandshakeExternalMessage
impl AsRef<EncryptionReply> for GssHandshakeExternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for AuthExternalMessage
impl AsRef<EncryptionReply> for AuthExternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for TerminatedExternalMessage
impl AsRef<EncryptionReply> for TerminatedExternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for PreStartupInternalMessage
impl AsRef<EncryptionReply> for PreStartupInternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for SslDecisionInternalMessage
impl AsRef<EncryptionReply> for SslDecisionInternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for GssDecisionInternalMessage
impl AsRef<EncryptionReply> for GssDecisionInternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for TlsHandshakeInternalMessage
impl AsRef<EncryptionReply> for TlsHandshakeInternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for GssHandshakeInternalMessage
impl AsRef<EncryptionReply> for GssHandshakeInternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for AuthInternalMessage
impl AsRef<EncryptionReply> for AuthInternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<EncryptionReply> for TerminatedInternalMessage
impl AsRef<EncryptionReply> for TerminatedInternalMessage
Source§fn as_ref(&self) -> &EncryptionReply
fn as_ref(&self) -> &EncryptionReply
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for EncryptionReply
impl Clone for EncryptionReply
Source§fn clone(&self) -> EncryptionReply
fn clone(&self) -> EncryptionReply
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EncryptionReply
Source§impl Debug for EncryptionReply
impl Debug for EncryptionReply
impl Eq for EncryptionReply
Source§impl From<AuthExternalMessage> for EncryptionReply
impl From<AuthExternalMessage> for EncryptionReply
Source§fn from(message: AuthExternalMessage) -> Self
fn from(message: AuthExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<AuthInternalMessage> for EncryptionReply
impl From<AuthInternalMessage> for EncryptionReply
Source§fn from(message: AuthInternalMessage) -> Self
fn from(message: AuthInternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<AwaitingGssReplyExternalMessage> for EncryptionReply
impl From<AwaitingGssReplyExternalMessage> for EncryptionReply
Source§fn from(message: AwaitingGssReplyExternalMessage) -> Self
fn from(message: AwaitingGssReplyExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<AwaitingSslReplyExternalMessage> for EncryptionReply
impl From<AwaitingSslReplyExternalMessage> for EncryptionReply
Source§fn from(message: AwaitingSslReplyExternalMessage) -> Self
fn from(message: AwaitingSslReplyExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<GssDecisionInternalMessage> for EncryptionReply
impl From<GssDecisionInternalMessage> for EncryptionReply
Source§fn from(message: GssDecisionInternalMessage) -> Self
fn from(message: GssDecisionInternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<GssHandshakeExternalMessage> for EncryptionReply
impl From<GssHandshakeExternalMessage> for EncryptionReply
Source§fn from(message: GssHandshakeExternalMessage) -> Self
fn from(message: GssHandshakeExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<GssHandshakeInternalMessage> for EncryptionReply
impl From<GssHandshakeInternalMessage> for EncryptionReply
Source§fn from(message: GssHandshakeInternalMessage) -> Self
fn from(message: GssHandshakeInternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<PreStartupExternalMessage> for EncryptionReply
impl From<PreStartupExternalMessage> for EncryptionReply
Source§fn from(message: PreStartupExternalMessage) -> Self
fn from(message: PreStartupExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<PreStartupInternalMessage> for EncryptionReply
impl From<PreStartupInternalMessage> for EncryptionReply
Source§fn from(message: PreStartupInternalMessage) -> Self
fn from(message: PreStartupInternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<SslDecisionInternalMessage> for EncryptionReply
impl From<SslDecisionInternalMessage> for EncryptionReply
Source§fn from(message: SslDecisionInternalMessage) -> Self
fn from(message: SslDecisionInternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<TerminatedExternalMessage> for EncryptionReply
impl From<TerminatedExternalMessage> for EncryptionReply
Source§fn from(message: TerminatedExternalMessage) -> Self
fn from(message: TerminatedExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<TerminatedInternalMessage> for EncryptionReply
impl From<TerminatedInternalMessage> for EncryptionReply
Source§fn from(message: TerminatedInternalMessage) -> Self
fn from(message: TerminatedInternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<TlsHandshakeExternalMessage> for EncryptionReply
impl From<TlsHandshakeExternalMessage> for EncryptionReply
Source§fn from(message: TlsHandshakeExternalMessage) -> Self
fn from(message: TlsHandshakeExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<TlsHandshakeInternalMessage> for EncryptionReply
impl From<TlsHandshakeInternalMessage> for EncryptionReply
Source§fn from(message: TlsHandshakeInternalMessage) -> Self
fn from(message: TlsHandshakeInternalMessage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EncryptionReply
impl PartialEq for EncryptionReply
Source§impl ReconstructableMessage for EncryptionReply
impl ReconstructableMessage for EncryptionReply
Source§fn is_reconstructable(&self) -> bool
fn is_reconstructable(&self) -> bool
Reports whether this typed value can be encoded on the wire.
impl StructuralPartialEq for EncryptionReply
Source§impl TryFrom<EncryptionReply> for PreStartupExternalMessage
impl TryFrom<EncryptionReply> for PreStartupExternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for AwaitingSslReplyExternalMessage
impl TryFrom<EncryptionReply> for AwaitingSslReplyExternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for AwaitingGssReplyExternalMessage
impl TryFrom<EncryptionReply> for AwaitingGssReplyExternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for TlsHandshakeExternalMessage
impl TryFrom<EncryptionReply> for TlsHandshakeExternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for GssHandshakeExternalMessage
impl TryFrom<EncryptionReply> for GssHandshakeExternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for AuthExternalMessage
impl TryFrom<EncryptionReply> for AuthExternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for TerminatedExternalMessage
impl TryFrom<EncryptionReply> for TerminatedExternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for PreStartupInternalMessage
impl TryFrom<EncryptionReply> for PreStartupInternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for SslDecisionInternalMessage
impl TryFrom<EncryptionReply> for SslDecisionInternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for GssDecisionInternalMessage
impl TryFrom<EncryptionReply> for GssDecisionInternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for TlsHandshakeInternalMessage
impl TryFrom<EncryptionReply> for TlsHandshakeInternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for GssHandshakeInternalMessage
impl TryFrom<EncryptionReply> for GssHandshakeInternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for AuthInternalMessage
impl TryFrom<EncryptionReply> for AuthInternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<EncryptionReply> for TerminatedInternalMessage
impl TryFrom<EncryptionReply> for TerminatedInternalMessage
Source§type Error = EncryptionReply
type Error = EncryptionReply
The type returned in the event of a conversion error.
Source§fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>
Performs the conversion.
Source§impl TryFrom<u8> for EncryptionReply
impl TryFrom<u8> for EncryptionReply
Source§impl TypedPhase<ServerRole, EncryptionReply> for AwaitingSslReply
impl TypedPhase<ServerRole, EncryptionReply> for AwaitingSslReply
Source§type ProtocolPhase = AwaitingSslReply
type ProtocolPhase = AwaitingSslReply
Generated grammar phase corresponding to the connection typestate.
Source§type Message = AwaitingSslReplyExternalMessage
type Message = AwaitingSslReplyExternalMessage
Opaque set of decoded messages legal for this role and phase.
Source§impl TypedPhase<ServerRole, EncryptionReply> for AwaitingGssReply
impl TypedPhase<ServerRole, EncryptionReply> for AwaitingGssReply
Source§type ProtocolPhase = AwaitingGssReply
type ProtocolPhase = AwaitingGssReply
Generated grammar phase corresponding to the connection typestate.
Source§type Message = AwaitingGssReplyExternalMessage
type Message = AwaitingGssReplyExternalMessage
Opaque set of decoded messages legal for this role and phase.
Auto Trait Implementations§
impl Freeze for EncryptionReply
impl RefUnwindSafe for EncryptionReply
impl Send for EncryptionReply
impl Sync for EncryptionReply
impl Unpin for EncryptionReply
impl UnsafeUnpin for EncryptionReply
impl UnwindSafe for EncryptionReply
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