pub enum Response {
EmptyQuery,
Query(QueryResponse),
Execution(Tag),
TransactionStart(Tag),
TransactionEnd(Tag),
Error(Box<ErrorInfo>),
CopyIn(CopyResponse),
CopyOut(CopyResponse),
CopyBoth(CopyResponse),
}Expand description
Query response types:
- Query: the response contains data rows
- Execution: response for ddl/dml execution
- Error: error response
- EmptyQuery: when client sends an empty query
- TransactionStart: indicate previous statement just started a transaction
- TransactionEnd: indicate previous statement just ended a transaction
- CopyIn: response for a copy-in request
- CopyOut: response for a copy-out request
- CopuBoth: response for a copy-both request
Variants§
EmptyQuery
Query(QueryResponse)
Execution(Tag)
TransactionStart(Tag)
TransactionEnd(Tag)
Error(Box<ErrorInfo>)
CopyIn(CopyResponse)
CopyOut(CopyResponse)
CopyBoth(CopyResponse)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl !RefUnwindSafe for Response
impl Send for Response
impl !Sync for Response
impl Unpin for Response
impl !UnwindSafe for Response
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