pub enum BackendMessage {
Show 22 variants
AuthenticationOk,
AuthenticationMD5Password([u8; 4]),
AuthenticationSASL(Vec<String>),
AuthenticationSASLContinue(Vec<u8>),
AuthenticationSASLFinal(Vec<u8>),
ParameterStatus {
name: String,
value: String,
},
BackendKeyData {
process_id: i32,
secret_key: i32,
},
ReadyForQuery(TransactionStatus),
RowDescription(Vec<FieldDescription>),
DataRow(Vec<Option<Vec<u8>>>),
CommandComplete(String),
ErrorResponse(ErrorFields),
ParseComplete,
BindComplete,
NoData,
CopyInResponse {
format: u8,
column_formats: Vec<u8>,
},
CopyOutResponse {
format: u8,
column_formats: Vec<u8>,
},
CopyData(Vec<u8>),
CopyDone,
NotificationResponse {
process_id: i32,
channel: String,
payload: String,
},
EmptyQueryResponse,
NoticeResponse(ErrorFields),
}Expand description
Backend (server → client) message types
Variants§
AuthenticationOk
Authentication request
AuthenticationMD5Password([u8; 4])
AuthenticationSASL(Vec<String>)
AuthenticationSASLContinue(Vec<u8>)
AuthenticationSASLFinal(Vec<u8>)
ParameterStatus
Parameter status (server config)
BackendKeyData
Backend key data (for cancel)
ReadyForQuery(TransactionStatus)
RowDescription(Vec<FieldDescription>)
DataRow(Vec<Option<Vec<u8>>>)
CommandComplete(String)
ErrorResponse(ErrorFields)
ParseComplete
BindComplete
NoData
CopyInResponse
Copy in response (server ready to receive COPY data)
CopyOutResponse
Copy out response (server will send COPY data)
CopyData(Vec<u8>)
CopyDone
NotificationResponse
Notification response (async notification from LISTEN/NOTIFY)
EmptyQueryResponse
NoticeResponse(ErrorFields)
Notice response (warning/info messages, not errors)
Implementations§
Trait Implementations§
Source§impl Clone for BackendMessage
impl Clone for BackendMessage
Source§fn clone(&self) -> BackendMessage
fn clone(&self) -> BackendMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BackendMessage
impl RefUnwindSafe for BackendMessage
impl Send for BackendMessage
impl Sync for BackendMessage
impl Unpin for BackendMessage
impl UnwindSafe for BackendMessage
Blanket Implementations§
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