pub struct CoreNameDecoder<const MAX_INITIAL_CAPACITY: usize = DEFAULT_MAX_INITIAL_CAPACITY>(/* private fields */);Expand description
core:name decoder
At most MAX_INITIAL_CAPACITY bytes are preallocated based on the name length read from the input
Trait Implementations§
Source§impl<const MAX_INITIAL_CAPACITY: usize> Debug for CoreNameDecoder<MAX_INITIAL_CAPACITY>
impl<const MAX_INITIAL_CAPACITY: usize> Debug for CoreNameDecoder<MAX_INITIAL_CAPACITY>
Source§impl<const MAX_INITIAL_CAPACITY: usize> Decoder for CoreNameDecoder<MAX_INITIAL_CAPACITY>
impl<const MAX_INITIAL_CAPACITY: usize> Decoder for CoreNameDecoder<MAX_INITIAL_CAPACITY>
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<const MAX_INITIAL_CAPACITY: usize> Freeze for CoreNameDecoder<MAX_INITIAL_CAPACITY>
impl<const MAX_INITIAL_CAPACITY: usize> RefUnwindSafe for CoreNameDecoder<MAX_INITIAL_CAPACITY>
impl<const MAX_INITIAL_CAPACITY: usize> Send for CoreNameDecoder<MAX_INITIAL_CAPACITY>
impl<const MAX_INITIAL_CAPACITY: usize> Sync for CoreNameDecoder<MAX_INITIAL_CAPACITY>
impl<const MAX_INITIAL_CAPACITY: usize> Unpin for CoreNameDecoder<MAX_INITIAL_CAPACITY>
impl<const MAX_INITIAL_CAPACITY: usize> UnsafeUnpin for CoreNameDecoder<MAX_INITIAL_CAPACITY>
impl<const MAX_INITIAL_CAPACITY: usize> UnwindSafe for CoreNameDecoder<MAX_INITIAL_CAPACITY>
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