Struct unsigned_varint::codec::Uvi
source · pub struct Uvi<T>(/* private fields */);
Expand description
Encoder/Decoder of unsigned-varint values
Trait Implementations§
source§impl Decoder for Uvi<u128>
impl Decoder for Uvi<u128>
source§impl Decoder for Uvi<u128>
impl Decoder for Uvi<u128>
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 Decoder for Uvi<u16>
impl Decoder for Uvi<u16>
source§impl Decoder for Uvi<u16>
impl Decoder for Uvi<u16>
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 Decoder for Uvi<u32>
impl Decoder for Uvi<u32>
source§impl Decoder for Uvi<u32>
impl Decoder for Uvi<u32>
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 Decoder for Uvi<u64>
impl Decoder for Uvi<u64>
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 Decoder for Uvi<u64>
impl Decoder for Uvi<u64>
source§impl Decoder for Uvi<u8>
impl Decoder for Uvi<u8>
source§impl Decoder for Uvi<u8>
impl Decoder for Uvi<u8>
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 Decoder for Uvi<usize>
impl Decoder for Uvi<usize>
source§impl Decoder for Uvi<usize>
impl Decoder for Uvi<usize>
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 Uvi<T>where T: RefUnwindSafe,
impl<T> Send for Uvi<T>where T: Send,
impl<T> Sync for Uvi<T>where T: Sync,
impl<T> Unpin for Uvi<T>where T: Unpin,
impl<T> UnwindSafe for Uvi<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