pub enum Backend {
Show 17 variants
Authentication(Authentication),
ParameterStatus {
name: String,
value: String,
},
BackendKeyData {
process_id: i32,
secret: i32,
},
RowDescription(Vec<Field>),
DataRow(Vec<Option<Vec<u8>>>),
CommandComplete(String),
EmptyQueryResponse,
ReadyForQuery(TransactionStatus),
Error(ServerError),
Notice(ServerError),
ParseComplete,
BindComplete,
CloseComplete,
NoData,
PortalSuspended,
NotificationResponse {
channel: String,
payload: String,
},
Other(u8),
}Expand description
A message received from the server.
Variants§
Authentication(Authentication)
ParameterStatus
BackendKeyData
RowDescription(Vec<Field>)
DataRow(Vec<Option<Vec<u8>>>)
CommandComplete(String)
EmptyQueryResponse
ReadyForQuery(TransactionStatus)
Error(ServerError)
Notice(ServerError)
ParseComplete
BindComplete
CloseComplete
NoData
PortalSuspended
NotificationResponse
Other(u8)
Anything the driver does not need to act on.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
impl UnwindSafe for Backend
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