pub struct BackendCodec;Expand description
Codec for the server-facing half of a proxied connection.
Implementations§
Source§impl BackendCodec
impl BackendCodec
Trait Implementations§
Source§impl Decoder for BackendCodec
impl Decoder for BackendCodec
Source§type Item = BackendMessage
type Item = BackendMessage
The type of decoded frames.
Source§type Error = ProtocolError
type Error = ProtocolError
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
Source§impl Default for BackendCodec
impl Default for BackendCodec
Source§impl Encoder<FrontendMessage> for BackendCodec
impl Encoder<FrontendMessage> for BackendCodec
Auto Trait Implementations§
impl Freeze for BackendCodec
impl RefUnwindSafe for BackendCodec
impl Send for BackendCodec
impl Sync for BackendCodec
impl Unpin for BackendCodec
impl UnsafeUnpin for BackendCodec
impl UnwindSafe for BackendCodec
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