pub struct PgCodec<D> { /* private fields */ }Expand description
A PostgreSQL codec which cannot confuse frontend and backend tag alphabets.
Implementations§
Trait Implementations§
Source§impl<D: Direction> Decoder for PgCodec<D>
impl<D: Direction> Decoder for PgCodec<D>
Source§fn decode(&mut self, source: &mut BytesMut) -> Result<Option<Self::Item>>
fn decode(&mut self, source: &mut BytesMut) -> Result<Option<Self::Item>>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl<D> Freeze for PgCodec<D>
impl<D> RefUnwindSafe for PgCodec<D>
impl<D> Send for PgCodec<D>
impl<D> Sync for PgCodec<D>
impl<D> Unpin for PgCodec<D>
impl<D> UnsafeUnpin for PgCodec<D>
impl<D> UnwindSafe for PgCodec<D>
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