pub enum SessionItem {
Message(BackendMessage),
ReadyForQuery {
status: TransactionStatus,
parameters_changed: bool,
},
CommandComplete {
tag: Bytes,
command: CommandIndex,
notices: Vec<TaggedNotice>,
},
}Expand description
A protocol-advancing message, optionally closing a command boundary.
Variants§
Message(BackendMessage)
An ordinary protocol-advancing backend message.
ReadyForQuery
Readiness together with pooling-relevant state accumulated by the demux.
Fields
§
status: TransactionStatusBackend transaction status.
CommandComplete
Command completion with notices accumulated since the previous boundary.
Fields
§
command: CommandIndexCompleted command’s position in the session.
§
notices: Vec<TaggedNotice>Notices attributed to this command.
Trait Implementations§
Source§impl Clone for SessionItem
impl Clone for SessionItem
Source§fn clone(&self) -> SessionItem
fn clone(&self) -> SessionItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionItem
impl Debug for SessionItem
impl Eq for SessionItem
Source§impl PartialEq for SessionItem
impl PartialEq for SessionItem
impl StructuralPartialEq for SessionItem
Auto Trait Implementations§
impl !Freeze for SessionItem
impl RefUnwindSafe for SessionItem
impl Send for SessionItem
impl Sync for SessionItem
impl Unpin for SessionItem
impl UnsafeUnpin for SessionItem
impl UnwindSafe for SessionItem
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