pub enum BackendForwarding {
Forwarded(BackendMessage),
Expanded {
source: BackendMessage,
messages: Vec<BackendMessage>,
},
Suppressed(BackendMessage),
}Expand description
Observable result of processing one PostgreSQL-originated response.
Variants§
Forwarded(BackendMessage)
The response was sent to the client.
Expanded
One PostgreSQL response expanded into these ordered client responses.
Fields
§
source: BackendMessageResponse received from PostgreSQL after client-role interception.
§
messages: Vec<BackendMessage>Responses emitted to the client after server-role interception.
Suppressed(BackendMessage)
The response advanced protocol state but was not sent.
Implementations§
Source§impl BackendForwarding
impl BackendForwarding
Sourcepub fn into_message(self) -> BackendMessage
pub fn into_message(self) -> BackendMessage
Returns the owned PostgreSQL response represented by this outcome.
Trait Implementations§
Source§impl Debug for BackendForwarding
impl Debug for BackendForwarding
impl Eq for BackendForwarding
Source§impl PartialEq for BackendForwarding
impl PartialEq for BackendForwarding
impl StructuralPartialEq for BackendForwarding
Auto Trait Implementations§
impl !Freeze for BackendForwarding
impl RefUnwindSafe for BackendForwarding
impl Send for BackendForwarding
impl Sync for BackendForwarding
impl Unpin for BackendForwarding
impl UnsafeUnpin for BackendForwarding
impl UnwindSafe for BackendForwarding
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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