pub struct ClientCodec;Trait Implementations§
Source§impl Decoder for ClientCodec
impl Decoder for ClientCodec
Source§type Item = Message<FromServer>
type Item = Message<FromServer>
The type of decoded frames.
Source§fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Self::Item>, Error>
fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Self::Item>, 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