#[non_exhaustive]pub struct PgWireMessageServerCodec<S> {
pub client_info: DefaultClient<S>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.client_info: DefaultClient<S>Implementations§
Source§impl<S> PgWireMessageServerCodec<S>
impl<S> PgWireMessageServerCodec<S>
Sourcepub fn new(client_info: DefaultClient<S>) -> Self
pub fn new(client_info: DefaultClient<S>) -> Self
Constructs a new PgWireMessageServerCodec.
Trait Implementations§
Source§impl<S: Debug> Debug for PgWireMessageServerCodec<S>
impl<S: Debug> Debug for PgWireMessageServerCodec<S>
Source§impl<S> Decoder for PgWireMessageServerCodec<S>
impl<S> Decoder for PgWireMessageServerCodec<S>
Source§type Item = PgWireFrontendMessage
type Item = PgWireFrontendMessage
The type of decoded frames.
Source§type Error = PgWireError
type Error = PgWireError
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(
&mut self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl<S> !Freeze for PgWireMessageServerCodec<S>
impl<S> RefUnwindSafe for PgWireMessageServerCodec<S>
impl<S> Send for PgWireMessageServerCodec<S>
impl<S> Sync for PgWireMessageServerCodec<S>
impl<S> Unpin for PgWireMessageServerCodec<S>
impl<S> UnwindSafe for PgWireMessageServerCodec<S>
Blanket Implementations§
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