pub struct ProtocolIdCodec;Trait Implementations§
Source§impl Debug for ProtocolIdCodec
impl Debug for ProtocolIdCodec
Source§impl Decoder for ProtocolIdCodec
impl Decoder for ProtocolIdCodec
Source§type Item = ProtocolId
type Item = ProtocolId
The type of decoded frames.
Source§type Error = ProtocolIdError
type Error = ProtocolIdError
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 ProtocolIdCodec
impl Default for ProtocolIdCodec
Source§fn default() -> ProtocolIdCodec
fn default() -> ProtocolIdCodec
Returns the “default value” for a type. Read more
Source§impl Encoder for ProtocolIdCodec
impl Encoder for ProtocolIdCodec
Auto Trait Implementations§
impl Freeze for ProtocolIdCodec
impl RefUnwindSafe for ProtocolIdCodec
impl Send for ProtocolIdCodec
impl Sync for ProtocolIdCodec
impl Unpin for ProtocolIdCodec
impl UnwindSafe for ProtocolIdCodec
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