pub enum BackendMessage {
Show 29 variants
AuthenticationOk,
AuthenticationCleartextPassword,
AuthenticationMd5Password {
salt: [u8; 4],
},
AuthenticationSasl {
mechanisms: Vec<String>,
},
AuthenticationSaslContinue {
data: Vec<u8>,
},
AuthenticationSaslFinal {
data: Vec<u8>,
},
BackendKeyData {
process_id: i32,
secret_key: i32,
},
ParseComplete,
BindComplete,
CloseComplete,
NoData,
PortalSuspended,
EmptyQueryResponse,
CommandComplete(String),
RowDescription(Vec<FieldDescription>),
DataRow(Vec<Option<Vec<u8>>>),
ParameterDescription(Vec<Oid>),
ParameterStatus {
name: String,
value: String,
},
ReadyForQuery(TransactionStatus),
CopyInResponse(CopyResponse),
CopyOutResponse(CopyResponse),
CopyBothResponse(CopyResponse),
CopyData(Vec<u8>),
CopyDone,
ErrorResponse(NoticeFields),
NoticeResponse(NoticeFields),
NotificationResponse(Notification),
FunctionCallResponse(Vec<u8>),
NegotiateProtocolVersion(Vec<u8>),
}Expand description
A message sent by a PostgreSQL backend (server → client).
Variants§
AuthenticationOk
AuthenticationCleartextPassword
AuthenticationMd5Password
AuthenticationSasl
AuthenticationSaslContinue
AuthenticationSaslFinal
BackendKeyData
ParseComplete
BindComplete
CloseComplete
NoData
PortalSuspended
EmptyQueryResponse
CommandComplete(String)
RowDescription(Vec<FieldDescription>)
DataRow(Vec<Option<Vec<u8>>>)
ParameterDescription(Vec<Oid>)
ParameterStatus
ReadyForQuery(TransactionStatus)
CopyInResponse(CopyResponse)
CopyOutResponse(CopyResponse)
CopyBothResponse(CopyResponse)
CopyData(Vec<u8>)
CopyDone
ErrorResponse(NoticeFields)
NoticeResponse(NoticeFields)
NotificationResponse(Notification)
FunctionCallResponse(Vec<u8>)
NegotiateProtocolVersion(Vec<u8>)
Implementations§
Trait Implementations§
Source§impl Clone for BackendMessage
impl Clone for BackendMessage
Source§impl Debug for BackendMessage
impl Debug for BackendMessage
Source§impl Encoder<BackendMessage> for FrontendCodec
impl Encoder<BackendMessage> for FrontendCodec
Source§impl PartialEq for BackendMessage
impl PartialEq for BackendMessage
impl StructuralPartialEq for BackendMessage
Auto Trait Implementations§
impl Forget for BackendMessage
impl Freeze for BackendMessage
impl Move for BackendMessage
impl RefUnwindSafe for BackendMessage
impl Send for BackendMessage
impl Sync for BackendMessage
impl Unpin for BackendMessage
impl UnsafeUnpin 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