pub enum PreStartupMessage {
SslRequest,
GssEncRequest,
CancelRequest {
process_id: u32,
secret_key: Bytes,
},
Startup(StartupMessage),
}Expand description
The external choice occupying a new connection’s untagged first packet.
Variants§
SslRequest
Raw SSL negotiation request code 80877103.
GssEncRequest
Raw GSS encryption request code 80877104.
CancelRequest
Out-of-band cancellation packet.
Startup(StartupMessage)
Normal protocol startup packet.
Implementations§
Trait Implementations§
Source§impl AcceptsMessage<PreStartupMessage> for RuntimeState
impl AcceptsMessage<PreStartupMessage> for RuntimeState
Source§fn accepts(&self, message: &PreStartupMessage) -> bool
fn accepts(&self, message: &PreStartupMessage) -> bool
Reports whether
message is legal without advancing this state.Source§impl AcceptsMessage<PreStartupMessage> for RuntimeState
impl AcceptsMessage<PreStartupMessage> for RuntimeState
Source§fn accepts(&self, message: &PreStartupMessage) -> bool
fn accepts(&self, message: &PreStartupMessage) -> bool
Reports whether
message is legal without advancing this state.Source§impl AsRef<PreStartupMessage> for PreStartupInternalMessage
impl AsRef<PreStartupMessage> for PreStartupInternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for AwaitingSslReplyInternalMessage
impl AsRef<PreStartupMessage> for AwaitingSslReplyInternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for AwaitingGssReplyInternalMessage
impl AsRef<PreStartupMessage> for AwaitingGssReplyInternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for TlsHandshakeInternalMessage
impl AsRef<PreStartupMessage> for TlsHandshakeInternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for GssHandshakeInternalMessage
impl AsRef<PreStartupMessage> for GssHandshakeInternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for AuthInternalMessage
impl AsRef<PreStartupMessage> for AuthInternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for TerminatedInternalMessage
impl AsRef<PreStartupMessage> for TerminatedInternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for PreStartupExternalMessage
impl AsRef<PreStartupMessage> for PreStartupExternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for SslDecisionExternalMessage
impl AsRef<PreStartupMessage> for SslDecisionExternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for GssDecisionExternalMessage
impl AsRef<PreStartupMessage> for GssDecisionExternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for TlsHandshakeExternalMessage
impl AsRef<PreStartupMessage> for TlsHandshakeExternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for GssHandshakeExternalMessage
impl AsRef<PreStartupMessage> for GssHandshakeExternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for AuthExternalMessage
impl AsRef<PreStartupMessage> for AuthExternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PreStartupMessage> for TerminatedExternalMessage
impl AsRef<PreStartupMessage> for TerminatedExternalMessage
Source§fn as_ref(&self) -> &PreStartupMessage
fn as_ref(&self) -> &PreStartupMessage
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for PreStartupMessage
impl Clone for PreStartupMessage
Source§fn clone(&self) -> PreStartupMessage
fn clone(&self) -> PreStartupMessage
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 moreSource§impl Debug for PreStartupMessage
impl Debug for PreStartupMessage
impl Eq for PreStartupMessage
Source§impl From<AuthExternalMessage> for PreStartupMessage
impl From<AuthExternalMessage> for PreStartupMessage
Source§fn from(message: AuthExternalMessage) -> Self
fn from(message: AuthExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<AuthInternalMessage> for PreStartupMessage
impl From<AuthInternalMessage> for PreStartupMessage
Source§fn from(message: AuthInternalMessage) -> Self
fn from(message: AuthInternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<AwaitingGssReplyInternalMessage> for PreStartupMessage
impl From<AwaitingGssReplyInternalMessage> for PreStartupMessage
Source§fn from(message: AwaitingGssReplyInternalMessage) -> Self
fn from(message: AwaitingGssReplyInternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<AwaitingSslReplyInternalMessage> for PreStartupMessage
impl From<AwaitingSslReplyInternalMessage> for PreStartupMessage
Source§fn from(message: AwaitingSslReplyInternalMessage) -> Self
fn from(message: AwaitingSslReplyInternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<GssDecisionExternalMessage> for PreStartupMessage
impl From<GssDecisionExternalMessage> for PreStartupMessage
Source§fn from(message: GssDecisionExternalMessage) -> Self
fn from(message: GssDecisionExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<GssHandshakeExternalMessage> for PreStartupMessage
impl From<GssHandshakeExternalMessage> for PreStartupMessage
Source§fn from(message: GssHandshakeExternalMessage) -> Self
fn from(message: GssHandshakeExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<GssHandshakeInternalMessage> for PreStartupMessage
impl From<GssHandshakeInternalMessage> for PreStartupMessage
Source§fn from(message: GssHandshakeInternalMessage) -> Self
fn from(message: GssHandshakeInternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<PreStartupExternalMessage> for PreStartupMessage
impl From<PreStartupExternalMessage> for PreStartupMessage
Source§fn from(message: PreStartupExternalMessage) -> Self
fn from(message: PreStartupExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<PreStartupInternalMessage> for PreStartupMessage
impl From<PreStartupInternalMessage> for PreStartupMessage
Source§fn from(message: PreStartupInternalMessage) -> Self
fn from(message: PreStartupInternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<SslDecisionExternalMessage> for PreStartupMessage
impl From<SslDecisionExternalMessage> for PreStartupMessage
Source§fn from(message: SslDecisionExternalMessage) -> Self
fn from(message: SslDecisionExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<TerminatedExternalMessage> for PreStartupMessage
impl From<TerminatedExternalMessage> for PreStartupMessage
Source§fn from(message: TerminatedExternalMessage) -> Self
fn from(message: TerminatedExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<TerminatedInternalMessage> for PreStartupMessage
impl From<TerminatedInternalMessage> for PreStartupMessage
Source§fn from(message: TerminatedInternalMessage) -> Self
fn from(message: TerminatedInternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<TlsHandshakeExternalMessage> for PreStartupMessage
impl From<TlsHandshakeExternalMessage> for PreStartupMessage
Source§fn from(message: TlsHandshakeExternalMessage) -> Self
fn from(message: TlsHandshakeExternalMessage) -> Self
Converts to this type from the input type.
Source§impl From<TlsHandshakeInternalMessage> for PreStartupMessage
impl From<TlsHandshakeInternalMessage> for PreStartupMessage
Source§fn from(message: TlsHandshakeInternalMessage) -> Self
fn from(message: TlsHandshakeInternalMessage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PreStartupMessage
impl PartialEq for PreStartupMessage
Source§impl ReconstructableMessage for PreStartupMessage
impl ReconstructableMessage for PreStartupMessage
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 PreStartupMessage
Source§impl TryFrom<PreStartupMessage> for PreStartupInternalMessage
impl TryFrom<PreStartupMessage> for PreStartupInternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for AwaitingSslReplyInternalMessage
impl TryFrom<PreStartupMessage> for AwaitingSslReplyInternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for AwaitingGssReplyInternalMessage
impl TryFrom<PreStartupMessage> for AwaitingGssReplyInternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for TlsHandshakeInternalMessage
impl TryFrom<PreStartupMessage> for TlsHandshakeInternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for GssHandshakeInternalMessage
impl TryFrom<PreStartupMessage> for GssHandshakeInternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for AuthInternalMessage
impl TryFrom<PreStartupMessage> for AuthInternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for TerminatedInternalMessage
impl TryFrom<PreStartupMessage> for TerminatedInternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for PreStartupExternalMessage
impl TryFrom<PreStartupMessage> for PreStartupExternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for SslDecisionExternalMessage
impl TryFrom<PreStartupMessage> for SslDecisionExternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for GssDecisionExternalMessage
impl TryFrom<PreStartupMessage> for GssDecisionExternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for TlsHandshakeExternalMessage
impl TryFrom<PreStartupMessage> for TlsHandshakeExternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for GssHandshakeExternalMessage
impl TryFrom<PreStartupMessage> for GssHandshakeExternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for AuthExternalMessage
impl TryFrom<PreStartupMessage> for AuthExternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TryFrom<PreStartupMessage> for TerminatedExternalMessage
impl TryFrom<PreStartupMessage> for TerminatedExternalMessage
Source§type Error = PreStartupMessage
type Error = PreStartupMessage
The type returned in the event of a conversion error.
Source§fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
fn try_from(message: PreStartupMessage) -> Result<Self, PreStartupMessage>
Performs the conversion.
Source§impl TypedPhase<ClientRole, PreStartupMessage> for PreStartup
impl TypedPhase<ClientRole, PreStartupMessage> for PreStartup
Source§type ProtocolPhase = PreStartup
type ProtocolPhase = PreStartup
Generated grammar phase corresponding to the connection typestate.
Source§type Message = PreStartupExternalMessage
type Message = PreStartupExternalMessage
Opaque set of decoded messages legal for this role and phase.
Auto Trait Implementations§
impl !Freeze for PreStartupMessage
impl RefUnwindSafe for PreStartupMessage
impl Send for PreStartupMessage
impl Sync for PreStartupMessage
impl Unpin for PreStartupMessage
impl UnsafeUnpin for PreStartupMessage
impl UnwindSafe for PreStartupMessage
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