pub enum BackendMessage {
Show 24 variants
Authentication(Authentication),
BackendKeyData(BackendKeyData),
NegotiateProtocolVersion {
newest_protocol_version: ProtocolVersion,
unrecognized_options: Vec<String>,
},
ParameterStatus {
name: String,
value: String,
},
ReadyForQuery(TransactionStatus),
RowDescription(Vec<FieldDescription>),
DataRow(Vec<Option<Vec<u8>>>),
CommandComplete(String),
EmptyQueryResponse,
ErrorResponse(ErrorOrNotice),
NoticeResponse(ErrorOrNotice),
ParseComplete,
BindComplete,
CloseComplete,
NoData,
ParameterDescription(Vec<u32>),
PortalSuspended,
CopyInResponse(CopyResponse),
CopyOutResponse(CopyResponse),
CopyBothResponse(CopyResponse),
CopyData(Vec<u8>),
CopyDone,
FunctionCallResponse(Option<Vec<u8>>),
NotificationResponse(NotificationResponse),
}Variants§
Authentication(Authentication)
BackendKeyData(BackendKeyData)
NegotiateProtocolVersion
ParameterStatus
ReadyForQuery(TransactionStatus)
RowDescription(Vec<FieldDescription>)
DataRow(Vec<Option<Vec<u8>>>)
CommandComplete(String)
EmptyQueryResponse
ErrorResponse(ErrorOrNotice)
NoticeResponse(ErrorOrNotice)
ParseComplete
BindComplete
CloseComplete
NoData
ParameterDescription(Vec<u32>)
PortalSuspended
CopyInResponse(CopyResponse)
CopyOutResponse(CopyResponse)
CopyBothResponse(CopyResponse)
CopyData(Vec<u8>)
CopyDone
FunctionCallResponse(Option<Vec<u8>>)
NotificationResponse(NotificationResponse)
Implementations§
Source§impl BackendMessage
impl BackendMessage
pub fn encode(&self) -> Result<Vec<u8>, PgWireError>
pub fn encode_for_protocol( &self, protocol_version: ProtocolVersion, ) -> Result<Vec<u8>, PgWireError>
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackendMessage
impl Debug for BackendMessage
impl Eq for BackendMessage
Source§impl PartialEq for BackendMessage
impl PartialEq for BackendMessage
impl StructuralPartialEq for BackendMessage
Auto 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