pub enum ForwardedMessage {
Frontend(FrontendMessage),
Backend(BackendMessage),
BackendExpanded {
source: BackendMessage,
messages: Vec<BackendMessage>,
},
FrontendSuppressed(FrontendMessage),
FrontendLocallyHandled(FrontendMessage),
BackendSuppressed(BackendMessage),
}Expand description
Direction selected by one cancellation-safe duplex forwarding step.
Variants§
Frontend(FrontendMessage)
A client-originated message was forwarded to PostgreSQL.
Backend(BackendMessage)
A PostgreSQL-originated message was forwarded to the client.
BackendExpanded
One PostgreSQL response expanded into ordered client responses.
Fields
§
source: BackendMessageResponse received from PostgreSQL.
§
messages: Vec<BackendMessage>Responses emitted to the client.
FrontendSuppressed(FrontendMessage)
A client-originated message was deliberately suppressed.
FrontendLocallyHandled(FrontendMessage)
A request was handled locally; responses were emitted or queued in order.
BackendSuppressed(BackendMessage)
A PostgreSQL-originated response advanced protocol state but was suppressed.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ForwardedMessage
impl RefUnwindSafe for ForwardedMessage
impl Send for ForwardedMessage
impl Sync for ForwardedMessage
impl Unpin for ForwardedMessage
impl UnsafeUnpin for ForwardedMessage
impl UnwindSafe for ForwardedMessage
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