Struct litep2p::codec::unsigned_varint::UnsignedVarint
source · pub struct UnsignedVarint { /* private fields */ }
Expand description
Unsigned varint codec.
Implementations§
source§impl UnsignedVarint
impl UnsignedVarint
Trait Implementations§
source§impl Decoder for UnsignedVarint
impl Decoder for UnsignedVarint
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 UnsignedVarint
impl RefUnwindSafe for UnsignedVarint
impl Send for UnsignedVarint
impl Sync for UnsignedVarint
impl Unpin for UnsignedVarint
impl UnwindSafe for UnsignedVarint
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