pub enum FrontendMessage {
Show 18 variants
Startup {
version: i32,
params: Vec<(String, String)>,
},
PasswordMessage(String),
SASLInitialResponse {
mechanism: String,
data: Vec<u8>,
},
SASLResponse(Vec<u8>),
Query(String),
Parse {
name: String,
query: String,
param_types: Vec<u32>,
},
Bind {
portal: String,
statement: String,
param_formats: Vec<i16>,
params: Vec<Option<Vec<u8>>>,
result_formats: Vec<i16>,
},
Describe {
kind: DescribeKind,
name: String,
},
Execute {
portal: String,
max_rows: i32,
},
Close {
kind: DescribeKind,
name: String,
},
Sync,
Flush,
CopyData(Vec<u8>),
CopyDone,
CopyFail(String),
Terminate,
CancelRequest {
process_id: i32,
secret_key: i32,
},
SSLRequest,
}Expand description
Messages sent from the client to the PostgreSQL server.
Variants§
Startup
Startup message (no type byte) - first message sent after connecting
Fields
PasswordMessage(String)
Password response for authentication
SASLInitialResponse
SASL initial response (mechanism selection and initial data)
Fields
SASLResponse(Vec<u8>)
SASL response (continuation data)
Query(String)
Simple query (single SQL string, returns text format)
Parse
Parse a prepared statement (extended query protocol)
Fields
Bind
Bind parameters to a prepared statement
Fields
Describe
Describe a prepared statement or portal
Execute
Execute a bound portal
Close
Close a prepared statement or portal
Sync
Sync - marks end of extended query, requests ReadyForQuery
Flush
Flush - request server to send all pending output
CopyData(Vec<u8>)
COPY data chunk
CopyDone
COPY operation complete
CopyFail(String)
COPY operation failed
Terminate
Terminate the connection
CancelRequest
Cancel a running query (sent on a separate connection)
SSLRequest
SSL negotiation request
Trait Implementations§
Source§impl Clone for FrontendMessage
impl Clone for FrontendMessage
Source§fn clone(&self) -> FrontendMessage
fn clone(&self) -> FrontendMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more