Enum pgwire::message::BackendMessage[][src]

pub enum BackendMessage {
Show 19 variants AuthenticationOk, CommandComplete { tag: String, }, EmptyQueryResponse, ReadyForQuery(TransactionStatus), RowDescription(Vec<FieldDescription>), DataRow(Vec<Option<Value>>), ParameterStatus(&'static strString), BackendKeyData { conn_id: u32, secret_key: u32, }, ParameterDescription(Vec<Type>), PortalSuspended, NoData, ParseComplete, BindComplete, CloseComplete, ErrorResponse(ErrorResponse), CopyInResponse { overall_format: Format, column_formats: Vec<Format>, }, CopyOutResponse { overall_format: Format, column_formats: Vec<Format>, }, CopyData(Vec<u8>), CopyDone,
}
Expand description

Internal representation of a backend message

Variants

AuthenticationOk

CommandComplete

Fields

tag: String

EmptyQueryResponse

ReadyForQuery(TransactionStatus)

Tuple Fields

RowDescription(Vec<FieldDescription>)

Tuple Fields

DataRow(Vec<Option<Value>>)

Tuple Fields

ParameterStatus(&'static strString)

Tuple Fields

0: &'static str
1: String

BackendKeyData

Fields

conn_id: u32
secret_key: u32

ParameterDescription(Vec<Type>)

Tuple Fields

0: Vec<Type>

PortalSuspended

NoData

ParseComplete

BindComplete

CloseComplete

ErrorResponse(ErrorResponse)

Tuple Fields

CopyInResponse

Fields

overall_format: Format
column_formats: Vec<Format>

CopyOutResponse

Fields

overall_format: Format
column_formats: Vec<Format>

CopyData(Vec<u8>)

Tuple Fields

0: Vec<u8>

CopyDone

Trait Implementations

Formats the value using the given formatter. Read more

The type of encoding errors. Read more

Encodes a frame into the buffer provided. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more