Struct unsigned_varint::codec::UviBytes
source · pub struct UviBytes<T = Bytes> { /* private fields */ }
Expand description
Encoder/Decoder of unsigned-varint, length-prefixed bytes
Implementations§
Trait Implementations§
source§impl<T> Decoder for UviBytes<T>
impl<T> Decoder for UviBytes<T>
source§impl<T> Decoder for UviBytes<T>
impl<T> Decoder for UviBytes<T>
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<T> RefUnwindSafe for UviBytes<T>where T: RefUnwindSafe,
impl<T> Send for UviBytes<T>where T: Send,
impl<T> Sync for UviBytes<T>where T: Sync,
impl<T> Unpin for UviBytes<T>where T: Unpin,
impl<T> UnwindSafe for UviBytes<T>where T: UnwindSafe,
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