pub enum SimpleTransition<S, C> {
Continue(Conn<S, SimpleQuery, C>, SessionItem),
CopyIn(Conn<S, CopyIn, C>, CopyResponse),
CopyOut(Conn<S, CopyOut, C>, CopyResponse),
CopyBoth(Conn<S, CopyBoth, C>, CopyResponse),
Ready(ReadyState<S, C>),
Error(Conn<S, Draining, C>, ErrorResponse),
}Expand description
Backend branch available while a simple query is active.
Variants§
Continue(Conn<S, SimpleQuery, C>, SessionItem)
A result item was consumed and more results may follow.
CopyIn(Conn<S, CopyIn, C>, CopyResponse)
The command entered COPY IN.
CopyOut(Conn<S, CopyOut, C>, CopyResponse)
The command entered COPY OUT.
CopyBoth(Conn<S, CopyBoth, C>, CopyResponse)
The command entered COPY BOTH.
Ready(ReadyState<S, C>)
Readiness completed the simple-query cycle.
Error(Conn<S, Draining, C>, ErrorResponse)
An error entered drain-until-ready recovery.
Trait Implementations§
Auto Trait Implementations§
impl<S, C> !Freeze for SimpleTransition<S, C>
impl<S, C> RefUnwindSafe for SimpleTransition<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for SimpleTransition<S, C>
impl<S, C> Sync for SimpleTransition<S, C>
impl<S, C> Unpin for SimpleTransition<S, C>
impl<S, C> UnsafeUnpin for SimpleTransition<S, C>where
S: UnsafeUnpin,
impl<S, C> UnwindSafe for SimpleTransition<S, C>where
S: UnwindSafe,
C: UnwindSafe,
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