Struct wasm_tokio::cm::OptionDecoder
source · pub struct OptionDecoder<T> { /* private fields */ }
Implementations§
source§impl<T> OptionDecoder<T>
impl<T> OptionDecoder<T>
pub fn into_inner(self) -> T
source§impl<T> OptionDecoder<T>
impl<T> OptionDecoder<T>
Trait Implementations§
source§impl<T: Debug> Debug for OptionDecoder<T>
impl<T: Debug> Debug for OptionDecoder<T>
source§impl<T> Decoder for OptionDecoder<T>where
T: Decoder,
impl<T> Decoder for OptionDecoder<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
source§impl<T: Default> Default for OptionDecoder<T>
impl<T: Default> Default for OptionDecoder<T>
source§fn default() -> OptionDecoder<T>
fn default() -> OptionDecoder<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for OptionDecoder<T>where
T: Freeze,
impl<T> RefUnwindSafe for OptionDecoder<T>where
T: RefUnwindSafe,
impl<T> Send for OptionDecoder<T>where
T: Send,
impl<T> Sync for OptionDecoder<T>where
T: Sync,
impl<T> Unpin for OptionDecoder<T>where
T: Unpin,
impl<T> UnwindSafe for OptionDecoder<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