pub struct ProtocolMessageDecoder;
Trait Implementations§
Source§impl Decoder for ProtocolMessageDecoder
impl Decoder for ProtocolMessageDecoder
Source§type Item = ProtocolMessage
type Item = ProtocolMessage
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 ProtocolMessageDecoder
impl RefUnwindSafe for ProtocolMessageDecoder
impl Send for ProtocolMessageDecoder
impl Sync for ProtocolMessageDecoder
impl Unpin for ProtocolMessageDecoder
impl UnwindSafe for ProtocolMessageDecoder
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