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

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

An enum representing Postgres backend messages.

Variants

AuthenticationCleartextPassword
AuthenticationGss
AuthenticationKerberosV5
AuthenticationMd5Password(AuthenticationMd5PasswordBody)
AuthenticationOk
AuthenticationScmCredential
AuthenticationSspi
AuthenticationGssContinue(AuthenticationGssContinueBody)
AuthenticationSasl(AuthenticationSaslBody)
AuthenticationSaslContinue(AuthenticationSaslContinueBody)
AuthenticationSaslFinal(AuthenticationSaslFinalBody)
BackendKeyData(BackendKeyDataBody)
BindComplete
CloseComplete
CommandComplete(CommandCompleteBody)
CopyData(CopyDataBody)
CopyDone
CopyInResponse(CopyInResponseBody)
CopyOutResponse(CopyOutResponseBody)
DataRow(DataRowBody)
EmptyQueryResponse
ErrorResponse(ErrorResponseBody)
NoData
NoticeResponse(NoticeResponseBody)
NotificationResponse(NotificationResponseBody)
ParameterDescription(ParameterDescriptionBody)
ParameterStatus(ParameterStatusBody)
ParseComplete
PortalSuspended
ReadyForQuery(ReadyForQueryBody)
RowDescription(RowDescriptionBody)

Methods

impl Message[src]

pub fn parse(buf: &mut BytesMut) -> Result<Option<Message>>[src]

Auto Trait Implementations

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

impl RefUnwindSafe for Message

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self