pub enum CopyBothReceive<S, C> {
Data(Conn<S, CopyBoth, C>, Bytes),
Done(Conn<S, CopyBothServerDone, C>),
Error(Conn<S, Draining, C>, ErrorResponse),
}Expand description
Backend branch while both COPY directions remain open.
Variants§
Data(Conn<S, CopyBoth, C>, Bytes)
One opaque backend data chunk was received.
Done(Conn<S, CopyBothServerDone, C>)
The backend closed its half of the stream.
Error(Conn<S, Draining, C>, ErrorResponse)
COPY failed and entered drain-until-ready recovery.
Implementations§
Source§impl<S, C> CopyBothReceive<S, C>
impl<S, C> CopyBothReceive<S, C>
Sourcepub fn decode_replication(self) -> ReplicationProjection<S, C>
pub fn decode_replication(self) -> ReplicationProjection<S, C>
Decodes a COPY BOTH data branch as a walsender message.
§Errors
Returns the connection with a decoding error for malformed known payloads.
Trait Implementations§
Auto Trait Implementations§
impl<S, C> !Freeze for CopyBothReceive<S, C>
impl<S, C> RefUnwindSafe for CopyBothReceive<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for CopyBothReceive<S, C>
impl<S, C> Sync for CopyBothReceive<S, C>
impl<S, C> Unpin for CopyBothReceive<S, C>
impl<S, C> UnsafeUnpin for CopyBothReceive<S, C>where
S: UnsafeUnpin,
impl<S, C> UnwindSafe for CopyBothReceive<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