Skip to main content

EncryptionReply

Enum EncryptionReply 

Source
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§

Source§

impl EncryptionReply

Source

pub const fn as_byte(self) -> u8

Returns PostgreSQL’s raw one-byte wire representation.

Trait Implementations§

Source§

impl AcceptsMessage<EncryptionReply> for RuntimeState

Source§

fn accepts(&self, message: &EncryptionReply) -> bool

Reports whether message is legal without advancing this state.
Source§

impl AcceptsMessage<EncryptionReply> for RuntimeState

Source§

fn accepts(&self, message: &EncryptionReply) -> bool

Reports whether message is legal without advancing this state.
Source§

impl AsRef<EncryptionReply> for PreStartupExternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for AwaitingSslReplyExternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for AwaitingGssReplyExternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for TlsHandshakeExternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for GssHandshakeExternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for AuthExternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for TerminatedExternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for PreStartupInternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for SslDecisionInternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for GssDecisionInternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for TlsHandshakeInternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for GssHandshakeInternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for AuthInternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<EncryptionReply> for TerminatedInternalMessage

Source§

fn as_ref(&self) -> &EncryptionReply

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for EncryptionReply

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Copy for EncryptionReply

Source§

impl Debug for EncryptionReply

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for EncryptionReply

Source§

impl From<AuthExternalMessage> for EncryptionReply

Source§

fn from(message: AuthExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<AuthInternalMessage> for EncryptionReply

Source§

fn from(message: AuthInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<AwaitingGssReplyExternalMessage> for EncryptionReply

Source§

fn from(message: AwaitingGssReplyExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<AwaitingSslReplyExternalMessage> for EncryptionReply

Source§

fn from(message: AwaitingSslReplyExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<GssDecisionInternalMessage> for EncryptionReply

Source§

fn from(message: GssDecisionInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<GssHandshakeExternalMessage> for EncryptionReply

Source§

fn from(message: GssHandshakeExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<GssHandshakeInternalMessage> for EncryptionReply

Source§

fn from(message: GssHandshakeInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<PreStartupExternalMessage> for EncryptionReply

Source§

fn from(message: PreStartupExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<PreStartupInternalMessage> for EncryptionReply

Source§

fn from(message: PreStartupInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SslDecisionInternalMessage> for EncryptionReply

Source§

fn from(message: SslDecisionInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<TerminatedExternalMessage> for EncryptionReply

Source§

fn from(message: TerminatedExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<TerminatedInternalMessage> for EncryptionReply

Source§

fn from(message: TerminatedInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<TlsHandshakeExternalMessage> for EncryptionReply

Source§

fn from(message: TlsHandshakeExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<TlsHandshakeInternalMessage> for EncryptionReply

Source§

fn from(message: TlsHandshakeInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for EncryptionReply

Source§

fn eq(&self, other: &EncryptionReply) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl ReconstructableMessage for EncryptionReply

Source§

fn is_reconstructable(&self) -> bool

Reports whether this typed value can be encoded on the wire.
Source§

impl StructuralPartialEq for EncryptionReply

Source§

impl TryFrom<EncryptionReply> for PreStartupExternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for AwaitingSslReplyExternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for AwaitingGssReplyExternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for TlsHandshakeExternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for GssHandshakeExternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for AuthExternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for TerminatedExternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for PreStartupInternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for SslDecisionInternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for GssDecisionInternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for TlsHandshakeInternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for GssHandshakeInternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for AuthInternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<EncryptionReply> for TerminatedInternalMessage

Source§

type Error = EncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(message: EncryptionReply) -> Result<Self, EncryptionReply>

Performs the conversion.
Source§

impl TryFrom<u8> for EncryptionReply

Source§

type Error = InvalidEncryptionReply

The type returned in the event of a conversion error.
Source§

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TypedPhase<ServerRole, EncryptionReply> for AwaitingSslReply

Source§

type ProtocolPhase = AwaitingSslReply

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = AwaitingSslReplyExternalMessage

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, EncryptionReply> for AwaitingGssReply

Source§

type ProtocolPhase = AwaitingGssReply

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = AwaitingGssReplyExternalMessage

Opaque set of decoded messages legal for this role and phase.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Handler> MessageMiddlewareExt for Handler

Source§

fn then<Next>(self, next: Next) -> Then<Self, Next>

Runs this value followed by next whenever both implement middleware for the intercepted message and state types.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.