Skip to main content

BackendMessage

Enum BackendMessage 

Source
pub enum BackendMessage {
Show 24 variants RowDescription(RowDescription), Authentication(Authentication), ParseComplete, BindComplete, CloseComplete, CommandComplete(Bytes), CopyData(Bytes), CopyDone, CopyInResponse(CopyResponse), CopyOutResponse(CopyResponse), CopyBothResponse(CopyResponse), DataRow(DataRow), EmptyQueryResponse, ErrorResponse(DiagnosticResponse), NoData, ParameterStatus { name: Bytes, value: Bytes, }, NoticeResponse(DiagnosticResponse), NotificationResponse { process_id: u32, channel: Bytes, payload: Bytes, }, BackendKeyData { process_id: u32, secret_key: Bytes, }, ReadyForQuery(TransactionStatus), ParameterDescription(Vec<u32>), PortalSuspended, FunctionCallResponse(Bytes), NegotiateProtocolVersion(NegotiateProtocolVersion),
}
Expand description

Messages sent by a PostgreSQL backend.

Variants§

§

RowDescription(RowDescription)

Describes the columns of a result set.

§

Authentication(Authentication)

Requests, continues, or completes authentication.

§

ParseComplete

Confirms Parse completion.

§

BindComplete

Confirms Bind completion.

§

CloseComplete

Confirms Close completion.

§

CommandComplete(Bytes)

Reports a completed SQL command tag.

§

CopyData(Bytes)

Carries COPY or replication data.

§

CopyDone

Signals completion of backend COPY output.

§

CopyInResponse(CopyResponse)

Enters COPY IN mode.

§

CopyOutResponse(CopyResponse)

Enters COPY OUT mode.

§

CopyBothResponse(CopyResponse)

Enters bidirectional COPY mode.

§

DataRow(DataRow)

Carries one result row.

§

EmptyQueryResponse

Reports an empty simple-query string.

§

ErrorResponse(DiagnosticResponse)

Reports an error with structured diagnostics.

§

NoData

Reports that a described statement or portal has no row metadata.

§

ParameterStatus

Reports a runtime parameter value.

Fields

§name: Bytes

Parameter name.

§value: Bytes

Current parameter value.

§

NoticeResponse(DiagnosticResponse)

Reports a non-fatal notice.

§

NotificationResponse

Delivers an asynchronous LISTEN/NOTIFY notification.

Fields

§process_id: u32

Process ID of the notifying backend.

§channel: Bytes

Notification channel.

§payload: Bytes

Notification payload.

§

BackendKeyData

Supplies the backend cancellation key.

Fields

§process_id: u32

Backend process ID.

§secret_key: Bytes

Backend secret cancellation key.

§

ReadyForQuery(TransactionStatus)

Marks an idle command boundary and reports transaction state.

§

ParameterDescription(Vec<u32>)

Reports inferred or declared prepared-statement parameter OIDs.

§

PortalSuspended

Reports that an execution stopped at its row limit and may resume.

§

FunctionCallResponse(Bytes)

Returns the legacy function-call result bytes.

§

NegotiateProtocolVersion(NegotiateProtocolVersion)

Negotiates protocol version and unsupported startup options.

Implementations§

Source§

impl BackendMessage

Source

pub fn to_frame(&self) -> Result<Frame>

Reconstructs a backend frame after inspection or modification.

§Errors

Returns an error when a structured message contains invalid values.

Trait Implementations§

Source§

impl AcceptsMessage<BackendMessage> for RuntimeState

Source§

fn accepts(&self, message: &BackendMessage) -> bool

Reports whether message is legal without advancing this state.
Source§

impl AcceptsMessage<BackendMessage> for RuntimeState

Source§

fn accepts(&self, message: &BackendMessage) -> bool

Reports whether message is legal without advancing this state.
Source§

impl AcceptsMessage<BackendMessage> for RuntimeState

Source§

fn accepts(&self, message: &BackendMessage) -> bool

Reports whether message is legal without advancing this state.
Source§

impl AcceptsMessage<BackendMessage> for RuntimeState

Source§

fn accepts(&self, message: &BackendMessage) -> bool

Reports whether message is legal without advancing this state.
Source§

impl AsRef<BackendMessage> for ReadyExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for FunctionCallingExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for BuildingExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for BoundBuildingExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for AwaitingReadyExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for CopyInExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for CopyOutExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for CopyBothExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for CopyBothClientDoneExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for CopyBothServerDoneExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for DrainingExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ResettingExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ResetCompleteExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for TerminatedExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for AuthExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for PasswordResponseExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for TokenResponseExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for TokenChallengeExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SaslInitialExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SaslExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SaslChallengeExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SaslFinalExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for AwaitingAuthOkExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for AwaitingStartupReadyExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ReadyExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for TerminatedExternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ReadyInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleErrorInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for BuildingInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ParseResponseInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for BindResponseInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for DescribeResponseInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ExecuteResponseInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for CloseResponseInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ExtendedErrorInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SyncResponseInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for FunctionResponseInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for FunctionReadyInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleCopyInInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleCopyInDoneInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleCopyInFailedInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleCopyOutInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleCopyOutDoneInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleCopyReadyInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ExtendedCopyInInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ExtendedCopyInDoneInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ExtendedCopyInFailedInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ExtendedCopyOutInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ExtendedCopyOutDoneInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleCopyBothInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleCopyBothClientDoneInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleCopyBothServerDoneInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleCopyBothDoneInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SimpleCopyBothFailedInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ExtendedCopyBothInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ExtendedCopyBothClientDoneInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ExtendedCopyBothServerDoneInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ExtendedCopyBothDoneInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ExtendedCopyBothFailedInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for TerminatedInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for StartupInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for AuthInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for PasswordResponseInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SaslInitialInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SaslInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for SaslResponseInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for TokenResponseInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for TokenPolicyInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for StartupReadyInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for ReadyInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<BackendMessage> for TerminatedInternalMessage

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<ProtocolMessage> AsRef<BackendMessage> for TypedBackendMessage<ProtocolMessage>
where ProtocolMessage: AsRef<BackendMessage>,

Source§

fn as_ref(&self) -> &BackendMessage

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for BackendMessage

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for BackendMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for BackendMessage

Source§

impl From<AuthExternalMessage> for BackendMessage

Source§

fn from(message: AuthExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<AuthInternalMessage> for BackendMessage

Source§

fn from(message: AuthInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<AwaitingAuthOkExternalMessage> for BackendMessage

Source§

fn from(message: AwaitingAuthOkExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<AwaitingReadyExternalMessage> for BackendMessage

Source§

fn from(message: AwaitingReadyExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<AwaitingStartupReadyExternalMessage> for BackendMessage

Source§

fn from(message: AwaitingStartupReadyExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<BindResponseInternalMessage> for BackendMessage

Source§

fn from(message: BindResponseInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<BoundBuildingExternalMessage> for BackendMessage

Source§

fn from(message: BoundBuildingExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<BuildingExternalMessage> for BackendMessage

Source§

fn from(message: BuildingExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<BuildingInternalMessage> for BackendMessage

Source§

fn from(message: BuildingInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<CloseResponseInternalMessage> for BackendMessage

Source§

fn from(message: CloseResponseInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<CopyBothClientDoneExternalMessage> for BackendMessage

Source§

fn from(message: CopyBothClientDoneExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<CopyBothExternalMessage> for BackendMessage

Source§

fn from(message: CopyBothExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<CopyBothServerDoneExternalMessage> for BackendMessage

Source§

fn from(message: CopyBothServerDoneExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<CopyInExternalMessage> for BackendMessage

Source§

fn from(message: CopyInExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<CopyOutExternalMessage> for BackendMessage

Source§

fn from(message: CopyOutExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeResponseInternalMessage> for BackendMessage

Source§

fn from(message: DescribeResponseInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<DrainingExternalMessage> for BackendMessage

Source§

fn from(message: DrainingExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ExecuteResponseInternalMessage> for BackendMessage

Source§

fn from(message: ExecuteResponseInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ExtendedCopyBothClientDoneInternalMessage> for BackendMessage

Source§

fn from(message: ExtendedCopyBothClientDoneInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ExtendedCopyBothDoneInternalMessage> for BackendMessage

Source§

fn from(message: ExtendedCopyBothDoneInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ExtendedCopyBothFailedInternalMessage> for BackendMessage

Source§

fn from(message: ExtendedCopyBothFailedInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ExtendedCopyBothInternalMessage> for BackendMessage

Source§

fn from(message: ExtendedCopyBothInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ExtendedCopyBothServerDoneInternalMessage> for BackendMessage

Source§

fn from(message: ExtendedCopyBothServerDoneInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ExtendedCopyInDoneInternalMessage> for BackendMessage

Source§

fn from(message: ExtendedCopyInDoneInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ExtendedCopyInFailedInternalMessage> for BackendMessage

Source§

fn from(message: ExtendedCopyInFailedInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ExtendedCopyInInternalMessage> for BackendMessage

Source§

fn from(message: ExtendedCopyInInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ExtendedCopyOutDoneInternalMessage> for BackendMessage

Source§

fn from(message: ExtendedCopyOutDoneInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ExtendedCopyOutInternalMessage> for BackendMessage

Source§

fn from(message: ExtendedCopyOutInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ExtendedErrorInternalMessage> for BackendMessage

Source§

fn from(message: ExtendedErrorInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<FunctionCallingExternalMessage> for BackendMessage

Source§

fn from(message: FunctionCallingExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<FunctionReadyInternalMessage> for BackendMessage

Source§

fn from(message: FunctionReadyInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<FunctionResponseInternalMessage> for BackendMessage

Source§

fn from(message: FunctionResponseInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ParseResponseInternalMessage> for BackendMessage

Source§

fn from(message: ParseResponseInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<PasswordResponseExternalMessage> for BackendMessage

Source§

fn from(message: PasswordResponseExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<PasswordResponseInternalMessage> for BackendMessage

Source§

fn from(message: PasswordResponseInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ReadyExternalMessage> for BackendMessage

Source§

fn from(message: ReadyExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ReadyExternalMessage> for BackendMessage

Source§

fn from(message: ReadyExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ReadyInternalMessage> for BackendMessage

Source§

fn from(message: ReadyInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ReadyInternalMessage> for BackendMessage

Source§

fn from(message: ReadyInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ResetCompleteExternalMessage> for BackendMessage

Source§

fn from(message: ResetCompleteExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<ResettingExternalMessage> for BackendMessage

Source§

fn from(message: ResettingExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SaslChallengeExternalMessage> for BackendMessage

Source§

fn from(message: SaslChallengeExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SaslExternalMessage> for BackendMessage

Source§

fn from(message: SaslExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SaslFinalExternalMessage> for BackendMessage

Source§

fn from(message: SaslFinalExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SaslInitialExternalMessage> for BackendMessage

Source§

fn from(message: SaslInitialExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SaslInitialInternalMessage> for BackendMessage

Source§

fn from(message: SaslInitialInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SaslInternalMessage> for BackendMessage

Source§

fn from(message: SaslInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SaslResponseInternalMessage> for BackendMessage

Source§

fn from(message: SaslResponseInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleCopyBothClientDoneInternalMessage> for BackendMessage

Source§

fn from(message: SimpleCopyBothClientDoneInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleCopyBothDoneInternalMessage> for BackendMessage

Source§

fn from(message: SimpleCopyBothDoneInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleCopyBothFailedInternalMessage> for BackendMessage

Source§

fn from(message: SimpleCopyBothFailedInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleCopyBothInternalMessage> for BackendMessage

Source§

fn from(message: SimpleCopyBothInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleCopyBothServerDoneInternalMessage> for BackendMessage

Source§

fn from(message: SimpleCopyBothServerDoneInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleCopyInDoneInternalMessage> for BackendMessage

Source§

fn from(message: SimpleCopyInDoneInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleCopyInFailedInternalMessage> for BackendMessage

Source§

fn from(message: SimpleCopyInFailedInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleCopyInInternalMessage> for BackendMessage

Source§

fn from(message: SimpleCopyInInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleCopyOutDoneInternalMessage> for BackendMessage

Source§

fn from(message: SimpleCopyOutDoneInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleCopyOutInternalMessage> for BackendMessage

Source§

fn from(message: SimpleCopyOutInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleCopyReadyInternalMessage> for BackendMessage

Source§

fn from(message: SimpleCopyReadyInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleErrorInternalMessage> for BackendMessage

Source§

fn from(message: SimpleErrorInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleExternalMessage> for BackendMessage

Source§

fn from(message: SimpleExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleInternalMessage> for BackendMessage

Source§

fn from(message: SimpleInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<StartupInternalMessage> for BackendMessage

Source§

fn from(message: StartupInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<StartupReadyInternalMessage> for BackendMessage

Source§

fn from(message: StartupReadyInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<SyncResponseInternalMessage> for BackendMessage

Source§

fn from(message: SyncResponseInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<TerminatedExternalMessage> for BackendMessage

Source§

fn from(message: TerminatedExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<TerminatedExternalMessage> for BackendMessage

Source§

fn from(message: TerminatedExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<TerminatedInternalMessage> for BackendMessage

Source§

fn from(message: TerminatedInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<TerminatedInternalMessage> for BackendMessage

Source§

fn from(message: TerminatedInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<TokenChallengeExternalMessage> for BackendMessage

Source§

fn from(message: TokenChallengeExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<TokenPolicyInternalMessage> for BackendMessage

Source§

fn from(message: TokenPolicyInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<TokenResponseExternalMessage> for BackendMessage

Source§

fn from(message: TokenResponseExternalMessage) -> Self

Converts to this type from the input type.
Source§

impl From<TokenResponseInternalMessage> for BackendMessage

Source§

fn from(message: TokenResponseInternalMessage) -> Self

Converts to this type from the input type.
Source§

impl<ProtocolMessage> From<TypedBackendMessage<ProtocolMessage>> for BackendMessage
where ProtocolMessage: Into<Self>,

Source§

fn from(message: TypedBackendMessage<ProtocolMessage>) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for BackendMessage

Source§

fn eq(&self, other: &BackendMessage) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl ReconstructableMessage for BackendMessage

Source§

fn is_reconstructable(&self) -> bool

Reports whether this typed value can be encoded on the wire.
Source§

impl StructuralPartialEq for BackendMessage

Source§

impl TryFrom<BackendMessage> for ReadyExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for FunctionCallingExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for BuildingExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for BoundBuildingExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for AwaitingReadyExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for CopyInExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for CopyOutExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for CopyBothExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for CopyBothClientDoneExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for CopyBothServerDoneExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for DrainingExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ResettingExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ResetCompleteExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for TerminatedExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for AuthExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for PasswordResponseExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for TokenResponseExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for TokenChallengeExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SaslInitialExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SaslExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SaslChallengeExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SaslFinalExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for AwaitingAuthOkExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for AwaitingStartupReadyExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ReadyExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for TerminatedExternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ReadyInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleErrorInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for BuildingInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ParseResponseInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for BindResponseInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for DescribeResponseInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ExecuteResponseInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for CloseResponseInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ExtendedErrorInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SyncResponseInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for FunctionResponseInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for FunctionReadyInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleCopyInInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleCopyInDoneInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleCopyInFailedInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleCopyOutInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleCopyOutDoneInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleCopyReadyInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ExtendedCopyInInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ExtendedCopyInDoneInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ExtendedCopyInFailedInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ExtendedCopyOutInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ExtendedCopyOutDoneInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleCopyBothInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleCopyBothClientDoneInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleCopyBothServerDoneInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleCopyBothDoneInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SimpleCopyBothFailedInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ExtendedCopyBothInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ExtendedCopyBothClientDoneInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ExtendedCopyBothServerDoneInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ExtendedCopyBothDoneInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ExtendedCopyBothFailedInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for TerminatedInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for StartupInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for AuthInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for PasswordResponseInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SaslInitialInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SaslInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for SaslResponseInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for TokenResponseInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for TokenPolicyInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for StartupReadyInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for ReadyInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for TerminatedInternalMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, BackendMessage>

Performs the conversion.
Source§

impl TryFrom<BackendMessage> for AsynchronousBackendMessage

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<ProtocolMessage> TryFrom<BackendMessage> for TypedBackendMessage<ProtocolMessage>
where ProtocolMessage: TryFrom<BackendMessage, Error = BackendMessage>,

Source§

type Error = BackendMessage

The type returned in the event of a conversion error.
Source§

fn try_from(message: BackendMessage) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TypedPhase<ServerRole, BackendMessage> for Ready

Source§

type ProtocolPhase = Ready

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<ReadyExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for Auth

Source§

type ProtocolPhase = Auth

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<AuthExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for TokenChallenge

Source§

type ProtocolPhase = TokenChallenge

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<TokenChallengeExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for Sasl

Source§

type ProtocolPhase = Sasl

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<SaslExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for AwaitingAuthOk

Source§

type ProtocolPhase = AwaitingAuthOk

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<AwaitingAuthOkExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for AwaitingStartupReady

Source§

type ProtocolPhase = AwaitingStartupReady

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<AwaitingStartupReadyExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for SimpleQuery

Source§

type ProtocolPhase = Simple

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<SimpleExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for FunctionCalling

Source§

type ProtocolPhase = FunctionCalling

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<FunctionCallingExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for Building

Source§

type ProtocolPhase = Building

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<BuildingExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for BoundBuilding

Source§

type ProtocolPhase = BoundBuilding

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<BoundBuildingExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for AwaitingReady

Source§

type ProtocolPhase = AwaitingReady

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<AwaitingReadyExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for CopyIn

Source§

type ProtocolPhase = CopyIn

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<CopyInExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for CopyOut

Source§

type ProtocolPhase = CopyOut

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<CopyOutExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for CopyBoth

Source§

type ProtocolPhase = CopyBoth

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<CopyBothExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for CopyBothClientDone

Source§

type ProtocolPhase = CopyBothClientDone

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<CopyBothClientDoneExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for CopyBothServerDone

Source§

type ProtocolPhase = CopyBothServerDone

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<CopyBothServerDoneExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for Draining

Source§

type ProtocolPhase = Draining

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<DrainingExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for Resetting

Source§

type ProtocolPhase = Resetting

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<ResettingExternalMessage>

Opaque set of decoded messages legal for this role and phase.
Source§

impl TypedPhase<ServerRole, BackendMessage> for ResetComplete

Source§

type ProtocolPhase = ResetComplete

Generated grammar phase corresponding to the connection typestate.
Source§

type Message = TypedBackendMessage<ResetCompleteExternalMessage>

Opaque set of decoded messages legal for this role and phase.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Handler> MessageMiddlewareExt for Handler

Source§

fn then<Next>(self, next: Next) -> Then<Self, Next>

Runs this value followed by next whenever both implement middleware for the intercepted message and state types.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.