pub enum BackendMessage {
Show 24 variants
RowDescription(RowDescription),
Authentication(Authentication),
ParseComplete,
BindComplete,
CloseComplete,
CommandComplete(Bytes),
CopyData(Bytes),
CopyDone,
CopyInResponse(CopyResponse),
CopyOutResponse(CopyResponse),
CopyBothResponse(CopyResponse),
DataRow(DataRow),
EmptyQueryResponse,
ErrorResponse(DiagnosticResponse),
NoData,
ParameterStatus {
name: Bytes,
value: Bytes,
},
NoticeResponse(DiagnosticResponse),
NotificationResponse {
process_id: u32,
channel: Bytes,
payload: Bytes,
},
BackendKeyData {
process_id: u32,
secret_key: Bytes,
},
ReadyForQuery(TransactionStatus),
ParameterDescription(Vec<u32>),
PortalSuspended,
FunctionCallResponse(Bytes),
NegotiateProtocolVersion(NegotiateProtocolVersion),
}Expand description
Messages sent by a PostgreSQL backend.
Variants§
RowDescription(RowDescription)
Describes the columns of a result set.
Authentication(Authentication)
Requests, continues, or completes authentication.
ParseComplete
Confirms Parse completion.
BindComplete
Confirms Bind completion.
CloseComplete
Confirms Close completion.
CommandComplete(Bytes)
Reports a completed SQL command tag.
CopyData(Bytes)
Carries COPY or replication data.
CopyDone
Signals completion of backend COPY output.
CopyInResponse(CopyResponse)
Enters COPY IN mode.
CopyOutResponse(CopyResponse)
Enters COPY OUT mode.
CopyBothResponse(CopyResponse)
Enters bidirectional COPY mode.
DataRow(DataRow)
Carries one result row.
EmptyQueryResponse
Reports an empty simple-query string.
ErrorResponse(DiagnosticResponse)
Reports an error with structured diagnostics.
NoData
Reports that a described statement or portal has no row metadata.
ParameterStatus
Reports a runtime parameter value.
NoticeResponse(DiagnosticResponse)
Reports a non-fatal notice.
NotificationResponse
Delivers an asynchronous LISTEN/NOTIFY notification.
Fields
BackendKeyData
Supplies the backend cancellation key.
ReadyForQuery(TransactionStatus)
Marks an idle command boundary and reports transaction state.
ParameterDescription(Vec<u32>)
Reports inferred or declared prepared-statement parameter OIDs.
PortalSuspended
Reports that an execution stopped at its row limit and may resume.
FunctionCallResponse(Bytes)
Returns the legacy function-call result bytes.
NegotiateProtocolVersion(NegotiateProtocolVersion)
Negotiates protocol version and unsupported startup options.
Implementations§
Trait Implementations§
Source§impl Clone for BackendMessage
impl Clone for BackendMessage
Source§fn clone(&self) -> BackendMessage
fn clone(&self) -> BackendMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more