pub struct ClientCodec { /* private fields */ }
Expand description
Unified codec for client-side operations.
With this codec, a framed stream can be constructed without splitting it into read/write halves.
Implementations§
Source§impl ClientCodec
impl ClientCodec
pub fn new() -> ClientCodec
Trait Implementations§
Source§impl Debug for ClientCodec
impl Debug for ClientCodec
Source§impl Decoder for ClientCodec
impl Decoder for ClientCodec
Source§type Item = ChannelMessage
type Item = ChannelMessage
The type of decoded frames.
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 Freeze for ClientCodec
impl RefUnwindSafe for ClientCodec
impl Send for ClientCodec
impl Sync for ClientCodec
impl Unpin for ClientCodec
impl UnwindSafe for ClientCodec
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