Enum postgres_protocol::message::backend::Message [] [src]

pub enum Message<T> {
    AuthenticationCleartextPassword,
    AuthenticationGss,
    AuthenticationKerberosV5,
    AuthenticationMd5Password(AuthenticationMd5PasswordBody<T>),
    AuthenticationOk,
    AuthenticationScmCredential,
    AuthenticationSspi,
    BackendKeyData(BackendKeyDataBody<T>),
    BindComplete,
    CloseComplete,
    CommandComplete(CommandCompleteBody<T>),
    CopyData(CopyDataBody<T>),
    CopyDone,
    CopyInResponse(CopyInResponseBody<T>),
    CopyOutResponse(CopyOutResponseBody<T>),
    DataRow(DataRowBody<T>),
    EmptyQueryResponse,
    ErrorResponse(ErrorResponseBody<T>),
    NoData,
    NoticeResponse(NoticeResponseBody<T>),
    NotificationResponse(NotificationResponseBody<T>),
    ParameterDescription(ParameterDescriptionBody<T>),
    ParameterStatus(ParameterStatusBody<T>),
    ParseComplete,
    PortalSuspended,
    ReadyForQuery(ReadyForQueryBody<T>),
    RowDescription(RowDescriptionBody<T>),
    // some variants omitted
}

An enum representing Postgres backend messages.

Variants

Methods

impl<'a> Message<&'a [u8]>
[src]

Attempts to parse a backend message from the buffer.

This method is unfortunately difficult to use due to deficiencies in the compiler's borrow checker.

impl Message<Vec<u8>>
[src]

Attempts to parse a backend message from the buffer.

In contrast to parse, this method produces messages that do not reference the input, buffer by copying any necessary portions internally.