pub struct Coder<S, C = FeaturedCode> { /* private fields */ }
Expand description
A coder type that can be used for either encode or decode which determined by De type.
Implementations§
Trait Implementations§
Source§impl<S, C, T, E> Stream for Coder<S, C>
impl<S, C, T, E> Stream for Coder<S, C>
Source§type Item = Result<<C as Code<T>>::Item, Box<dyn Error + Send + Sync>>
type Item = Result<<C as Code<T>>::Item, Box<dyn Error + Send + Sync>>
Values yielded by the stream.
impl<'__pin, S, C> Unpin for Coder<S, C>where
PinnedFieldsOf<__Origin<'__pin, S, C>>: Unpin,
Auto Trait Implementations§
impl<S, C> Freeze for Coder<S, C>
impl<S, C> RefUnwindSafe for Coder<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for Coder<S, C>
impl<S, C> Sync for Coder<S, C>
impl<S, C> UnwindSafe for Coder<S, C>where
S: UnwindSafe,
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