pub struct NoopCodec<Compact> { /* private fields */ }
Expand description
A noop codec to use as a placeholder when backend does not support encoding and decoding Panics if any of its methods are called
Trait Implementations§
Auto Trait Implementations§
impl<Compact> Freeze for NoopCodec<Compact>
impl<Compact> RefUnwindSafe for NoopCodec<Compact>where
Compact: RefUnwindSafe,
impl<Compact> Send for NoopCodec<Compact>where
Compact: Send,
impl<Compact> Sync for NoopCodec<Compact>where
Compact: Sync,
impl<Compact> Unpin for NoopCodec<Compact>where
Compact: Unpin,
impl<Compact> UnwindSafe for NoopCodec<Compact>where
Compact: 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