Module protocol

Source

Structs§

AuthenticationCleartextPassword
The AuthenticationCleartextPassword struct represents a message indicating that a cleartext password is required for authentication.
AuthenticationCleartextPasswordBuilder
The AuthenticationCleartextPassword struct represents a message indicating that a cleartext password is required for authentication.
AuthenticationGSS
The AuthenticationGSS struct represents a message indicating that GSSAPI authentication is required.
AuthenticationGSSBuilder
The AuthenticationGSS struct represents a message indicating that GSSAPI authentication is required.
AuthenticationGSSContinue
The AuthenticationGSSContinue struct represents a message indicating the continuation of GSSAPI authentication.
AuthenticationGSSContinueBuilder
The AuthenticationGSSContinue struct represents a message indicating the continuation of GSSAPI authentication.
AuthenticationKerberosV5
The AuthenticationKerberosV5 struct represents a message indicating that Kerberos V5 authentication is required.
AuthenticationKerberosV5Builder
The AuthenticationKerberosV5 struct represents a message indicating that Kerberos V5 authentication is required.
AuthenticationMD5Password
The AuthenticationMD5Password struct represents a message indicating that an MD5-encrypted password is required for authentication.
AuthenticationMD5PasswordBuilder
The AuthenticationMD5Password struct represents a message indicating that an MD5-encrypted password is required for authentication.
AuthenticationMessage
The AuthenticationMessage struct is a base for all Postgres authentication messages.
AuthenticationMessageBuilder
The AuthenticationMessage struct is a base for all Postgres authentication messages.
AuthenticationOk
The AuthenticationOk struct represents a message indicating successful authentication.
AuthenticationOkBuilder
The AuthenticationOk struct represents a message indicating successful authentication.
AuthenticationSASL
The AuthenticationSASL struct represents a message indicating that SASL authentication is required.
AuthenticationSASLBuilder
The AuthenticationSASL struct represents a message indicating that SASL authentication is required.
AuthenticationSASLContinue
The AuthenticationSASLContinue struct represents a message containing a SASL challenge during the authentication process.
AuthenticationSASLContinueBuilder
The AuthenticationSASLContinue struct represents a message containing a SASL challenge during the authentication process.
AuthenticationSASLFinal
The AuthenticationSASLFinal struct represents a message indicating the completion of SASL authentication.
AuthenticationSASLFinalBuilder
The AuthenticationSASLFinal struct represents a message indicating the completion of SASL authentication.
AuthenticationSCMCredential
The AuthenticationSCMCredential struct represents a message indicating that an SCM credential is required for authentication.
AuthenticationSCMCredentialBuilder
The AuthenticationSCMCredential struct represents a message indicating that an SCM credential is required for authentication.
AuthenticationSSPI
The AuthenticationSSPI struct represents a message indicating that SSPI authentication is required.
AuthenticationSSPIBuilder
The AuthenticationSSPI struct represents a message indicating that SSPI authentication is required.
BackendKeyData
The BackendKeyData struct represents a message containing the process ID and secret key for this backend.
BackendKeyDataBuilder
The BackendKeyData struct represents a message containing the process ID and secret key for this backend.
Bind
The Bind struct represents a message to bind a named portal to a prepared statement.
BindBuilder
The Bind struct represents a message to bind a named portal to a prepared statement.
BindComplete
The BindComplete struct represents a message indicating that a Bind operation was successful.
BindCompleteBuilder
The BindComplete struct represents a message indicating that a Bind operation was successful.
CancelRequest
The CancelRequest struct represents a message to request the cancellation of a query.
CancelRequestBuilder
The CancelRequest struct represents a message to request the cancellation of a query.
Close
The Close struct represents a message to close a prepared statement or portal.
CloseBuilder
The Close struct represents a message to close a prepared statement or portal.
CloseComplete
The CloseComplete struct represents a message indicating that a Close operation was successful.
CloseCompleteBuilder
The CloseComplete struct represents a message indicating that a Close operation was successful.
CommandComplete
The CommandComplete struct represents a message indicating the successful completion of a command.
CommandCompleteBuilder
The CommandComplete struct represents a message indicating the successful completion of a command.
CopyBothResponse
The CopyBothResponse is used only for Streaming Replication.
CopyBothResponseBuilder
The CopyBothResponse is used only for Streaming Replication.
CopyData
The CopyData struct represents a message containing data for a copy operation.
CopyDataBuilder
The CopyData struct represents a message containing data for a copy operation.
CopyDone
The CopyDone struct represents a message indicating that a copy operation is complete.
CopyDoneBuilder
The CopyDone struct represents a message indicating that a copy operation is complete.
CopyFail
The CopyFail struct represents a message indicating that a copy operation has failed.
CopyFailBuilder
The CopyFail struct represents a message indicating that a copy operation has failed.
CopyInResponse
The CopyInResponse struct represents a message indicating that the server is ready to receive data for a copy-in operation.
CopyInResponseBuilder
The CopyInResponse struct represents a message indicating that the server is ready to receive data for a copy-in operation.
CopyOutResponse
The CopyOutResponse struct represents a message indicating that the server is ready to send data for a copy-out operation.
CopyOutResponseBuilder
The CopyOutResponse struct represents a message indicating that the server is ready to send data for a copy-out operation.
DataRow
The DataRow struct represents a message containing a row of data.
DataRowBuilder
The DataRow struct represents a message containing a row of data.
Describe
The Describe struct represents a message to describe a prepared statement or portal.
DescribeBuilder
The Describe struct represents a message to describe a prepared statement or portal.
EmptyQueryResponse
The EmptyQueryResponse struct represents a message indicating that an empty query string was recognized.
EmptyQueryResponseBuilder
The EmptyQueryResponse struct represents a message indicating that an empty query string was recognized.
ErrorField
The ErrorField struct represents a single error message within an ErrorResponse.
ErrorFieldBuilder
The ErrorField struct represents a single error message within an ErrorResponse.
ErrorResponse
The ErrorResponse struct represents a message indicating that an error has occurred.
ErrorResponseBuilder
The ErrorResponse struct represents a message indicating that an error has occurred.
Execute
The Execute struct represents a message to execute a prepared statement or portal.
ExecuteBuilder
The Execute struct represents a message to execute a prepared statement or portal.
Flush
The Flush struct represents a message to flush the backend’s output buffer.
FlushBuilder
The Flush struct represents a message to flush the backend’s output buffer.
FunctionCall
The FunctionCall struct represents a message to call a function.
FunctionCallBuilder
The FunctionCall struct represents a message to call a function.
FunctionCallResponse
The FunctionCallResponse struct represents a message containing the result of a function call.
FunctionCallResponseBuilder
The FunctionCallResponse struct represents a message containing the result of a function call.
GSSENCRequest
The GSSENCRequest struct represents a message requesting GSSAPI encryption.
GSSENCRequestBuilder
The GSSENCRequest struct represents a message requesting GSSAPI encryption.
GSSResponse
The GSSResponse struct represents a message containing a GSSAPI or SSPI response.
GSSResponseBuilder
The GSSResponse struct represents a message containing a GSSAPI or SSPI response.
InitialMessage
A generic base for all initial Postgres messages.
InitialMessageBuilder
A generic base for all initial Postgres messages.
Message
A generic base for all Postgres mtype/mlen-style messages.
MessageBuilder
A generic base for all Postgres mtype/mlen-style messages.
NegotiateProtocolVersion
The NegotiateProtocolVersion struct represents a message requesting protocol version negotiation.
NegotiateProtocolVersionBuilder
The NegotiateProtocolVersion struct represents a message requesting protocol version negotiation.
NoData
The NoData struct represents a message indicating that there is no data to return.
NoDataBuilder
The NoData struct represents a message indicating that there is no data to return.
NoticeField
The NoticeField struct represents a single error message within an NoticeResponse.
NoticeFieldBuilder
The NoticeField struct represents a single error message within an NoticeResponse.
NoticeResponse
The NoticeResponse struct represents a message containing a notice.
NoticeResponseBuilder
The NoticeResponse struct represents a message containing a notice.
NotificationResponse
The NotificationResponse struct represents a message containing a notification from the backend.
NotificationResponseBuilder
The NotificationResponse struct represents a message containing a notification from the backend.
ParameterDescription
The ParameterDescription struct represents a message describing the parameters needed by a prepared statement.
ParameterDescriptionBuilder
The ParameterDescription struct represents a message describing the parameters needed by a prepared statement.
ParameterStatus
The ParameterStatus struct represents a message containing the current status of a parameter.
ParameterStatusBuilder
The ParameterStatus struct represents a message containing the current status of a parameter.
Parse
The Parse struct represents a message to parse a query string.
ParseBuilder
The Parse struct represents a message to parse a query string.
ParseComplete
The ParseComplete struct represents a message indicating that a Parse operation was successful.
ParseCompleteBuilder
The ParseComplete struct represents a message indicating that a Parse operation was successful.
PasswordMessage
The PasswordMessage struct represents a message containing a password.
PasswordMessageBuilder
The PasswordMessage struct represents a message containing a password.
PortalSuspended
The PortalSuspended struct represents a message indicating that a portal has been suspended.
PortalSuspendedBuilder
The PortalSuspended struct represents a message indicating that a portal has been suspended.
Query
The Query struct represents a message to execute a simple query.
QueryBuilder
The Query struct represents a message to execute a simple query.
ReadyForQuery
The ReadyForQuery struct represents a message indicating that the backend is ready for a new query.
ReadyForQueryBuilder
The ReadyForQuery struct represents a message indicating that the backend is ready for a new query.
RowDescription
The RowDescription struct represents a message describing the rows that will be returned by a query.
RowDescriptionBuilder
The RowDescription struct represents a message describing the rows that will be returned by a query.
RowField
The RowField struct represents a row within the RowDescription message.
RowFieldBuilder
The RowField struct represents a row within the RowDescription message.
SASLInitialResponse
The SASLInitialResponse struct represents a message containing a SASL initial response.
SASLInitialResponseBuilder
The SASLInitialResponse struct represents a message containing a SASL initial response.
SASLResponse
The SASLResponse struct represents a message containing a SASL response.
SASLResponseBuilder
The SASLResponse struct represents a message containing a SASL response.
SSLRequest
The SSLRequest struct represents a message requesting SSL encryption.
SSLRequestBuilder
The SSLRequest struct represents a message requesting SSL encryption.
SSLResponse
Available fields:
SSLResponseBuilder
StartupMessage
The StartupMessage struct represents a message to initiate a connection.
StartupMessageBuilder
The StartupMessage struct represents a message to initiate a connection.
StartupNameValue
The StartupMessage struct represents a name/value pair within the StartupMessage message.
StartupNameValueBuilder
The StartupMessage struct represents a name/value pair within the StartupMessage message.
Sync
The Sync struct represents a message to synchronize the frontend and backend.
SyncBuilder
The Sync struct represents a message to synchronize the frontend and backend.
Terminate
The Terminate struct represents a message to terminate a connection.
TerminateBuilder
The Terminate struct represents a message to terminate a connection.

Enums§

Backend
The Backend message group contains messages sent from the backend to the frontend.
BackendBuilder
CloseType
The type of object to close.
CopyFormat
The data format for a copy operation.
DescribeType
The type of object to describe.
FormatCode
The format code for an input or output value.
Frontend
The Frontend message group contains messages sent from the frontend to the backend.
FrontendBuilder
Initial
The Initial message group contains messages that are sent before the normal message flow.
InitialBuilder

Traits§

BackendMatch
FrontendMatch
InitialMatch