pub enum BackendMessage {
Show 29 variants
AuthenticationOk,
AuthenticationCleartextPassword,
AuthenticationMD5Password([u8; 4]),
AuthenticationSASL(Vec<String>),
AuthenticationSASLContinue(Vec<u8>),
AuthenticationSASLFinal(Vec<u8>),
BackendKeyData {
process_id: i32,
secret_key: i32,
},
ParameterStatus {
name: String,
value: String,
},
ReadyForQuery(TransactionStatus),
RowDescription(Vec<FieldDescription>),
DataRow(Vec<Option<Vec<u8>>>),
CommandComplete(String),
EmptyQueryResponse,
ParseComplete,
BindComplete,
CloseComplete,
ParameterDescription(Vec<u32>),
NoData,
PortalSuspended,
ErrorResponse(ErrorFields),
NoticeResponse(ErrorFields),
CopyInResponse {
format: i8,
column_formats: Vec<i16>,
},
CopyOutResponse {
format: i8,
column_formats: Vec<i16>,
},
CopyData(Vec<u8>),
CopyDone,
CopyBothResponse {
format: i8,
column_formats: Vec<i16>,
},
NotificationResponse {
process_id: i32,
channel: String,
payload: String,
},
FunctionCallResponse(Option<Vec<u8>>),
NegotiateProtocolVersion {
newest_minor: i32,
unrecognized: Vec<String>,
},
}Expand description
Messages sent from the PostgreSQL server to the client.
Variants§
AuthenticationOk
Authentication successful
AuthenticationCleartextPassword
Server requests cleartext password
AuthenticationMD5Password([u8; 4])
Server requests MD5-hashed password with salt
AuthenticationSASL(Vec<String>)
Server requests SASL authentication (lists mechanisms)
AuthenticationSASLContinue(Vec<u8>)
SASL authentication continuation data
AuthenticationSASLFinal(Vec<u8>)
SASL authentication final data
BackendKeyData
Backend process ID and secret key for cancellation
ParameterStatus
Server parameter status (e.g., server_encoding, TimeZone)
ReadyForQuery(TransactionStatus)
Server is ready for a new query
RowDescription(Vec<FieldDescription>)
Describes the columns of a result set
DataRow(Vec<Option<Vec<u8>>>)
A single data row
CommandComplete(String)
Query completed successfully
EmptyQueryResponse
Empty query response
ParseComplete
Parse completed successfully
BindComplete
Bind completed successfully
CloseComplete
Close completed successfully
ParameterDescription(Vec<u32>)
Describes parameter types for a prepared statement
NoData
No data will be returned
PortalSuspended
Portal execution suspended (reached max_rows)
ErrorResponse(ErrorFields)
Error response with details
NoticeResponse(ErrorFields)
Notice (warning) with details
CopyInResponse
Server is ready to receive COPY data
Fields
CopyOutResponse
Server is sending COPY data
Fields
CopyData(Vec<u8>)
COPY data chunk
CopyDone
COPY operation complete
CopyBothResponse
COPY data format information for both directions
Fields
NotificationResponse
Asynchronous notification (from LISTEN/NOTIFY)
Fields
FunctionCallResponse(Option<Vec<u8>>)
Function call result
NegotiateProtocolVersion
Server doesn’t support requested protocol features
Trait Implementations§
Source§impl Clone for BackendMessage
impl Clone for BackendMessage
Source§fn clone(&self) -> BackendMessage
fn clone(&self) -> BackendMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more