pub struct DecoderContext<C: CodecContext> { /* private fields */ }Expand description
Wrapper that owns codec context state for repeated decode calls.
Implementations§
Source§impl<C: CodecContext> DecoderContext<C>
impl<C: CodecContext> DecoderContext<C>
Sourcepub fn cache_stats(&self) -> CacheStats
pub fn cache_stats(&self) -> CacheStats
Return cache counters from the codec-specific context.
Sourcepub fn into_inner(self) -> C
pub fn into_inner(self) -> C
Consume the wrapper and return the codec-specific context.
Trait Implementations§
Source§impl<C: Debug + CodecContext> Debug for DecoderContext<C>
impl<C: Debug + CodecContext> Debug for DecoderContext<C>
Source§impl<C: Default + CodecContext> Default for DecoderContext<C>
impl<C: Default + CodecContext> Default for DecoderContext<C>
Source§fn default() -> DecoderContext<C>
fn default() -> DecoderContext<C>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<C> Freeze for DecoderContext<C>where
C: Freeze,
impl<C> RefUnwindSafe for DecoderContext<C>where
C: RefUnwindSafe,
impl<C> Send for DecoderContext<C>
impl<C> Sync for DecoderContext<C>where
C: Sync,
impl<C> Unpin for DecoderContext<C>where
C: Unpin,
impl<C> UnsafeUnpin for DecoderContext<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for DecoderContext<C>where
C: 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