Struct wasm_tokio::CoreVecDecoder
source · pub struct CoreVecDecoder<T: Decoder> { /* private fields */ }
Expand description
core:vec
decoder
Implementations§
source§impl<T> CoreVecDecoder<T>where
T: Decoder,
impl<T> CoreVecDecoder<T>where
T: Decoder,
pub fn new(decoder: T) -> Self
pub fn into_inner(self) -> T
Trait Implementations§
source§impl<T> Decoder for CoreVecDecoder<T>where
T: Decoder,
impl<T> Decoder for CoreVecDecoder<T>where
T: Decoder,
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> Freeze for CoreVecDecoder<T>where
T: Freeze,
impl<T> RefUnwindSafe for CoreVecDecoder<T>
impl<T> Send for CoreVecDecoder<T>
impl<T> Sync for CoreVecDecoder<T>
impl<T> Unpin for CoreVecDecoder<T>
impl<T> UnwindSafe for CoreVecDecoder<T>
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