pub enum BackendMessage {
Authentication(AuthenticationMessage),
BackendKeyData {
process_id: i32,
secret_key: i32,
},
CommandComplete(String),
DataRow(Vec<Option<Bytes>>),
ErrorResponse(ErrorFields),
NoticeResponse(ErrorFields),
ParameterStatus {
name: String,
value: String,
},
ReadyForQuery {
status: u8,
},
RowDescription(Vec<FieldDescription>),
}Expand description
Backend message (server → client)
Variants§
Authentication(AuthenticationMessage)
Authentication request
BackendKeyData
Backend key data (for cancellation)
CommandComplete(String)
Command complete
DataRow(Vec<Option<Bytes>>)
Data row
ErrorResponse(ErrorFields)
Error response
NoticeResponse(ErrorFields)
Notice response
ParameterStatus
Parameter status
ReadyForQuery
Ready for query
RowDescription(Vec<FieldDescription>)
Row description
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 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