pub struct WrappedDecoder<T, D> { /* private fields */ }Expand description
Wraps a Decoder, attempting to decode a specific message type from provided data.
Implementations§
Source§impl<T, E> WrappedDecoder<T, E>
impl<T, E> WrappedDecoder<T, E>
Sourcepub fn new(decoder: E) -> Self
pub fn new(decoder: E) -> Self
Creates a new WrappedDecoder using the given Decoder.
The new decoder is a TypedDecoder that attempts to decode values of type T from
provided data.
Trait Implementations§
Source§impl<T, D> TypedDecoder for WrappedDecoder<T, D>where
T: DeserializeOwned,
D: Decoder,
impl<T, D> TypedDecoder for WrappedDecoder<T, D>where
T: DeserializeOwned,
D: Decoder,
Auto Trait Implementations§
impl<T, D> Freeze for WrappedDecoder<T, D>where
D: Freeze,
impl<T, D> RefUnwindSafe for WrappedDecoder<T, D>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, D> Send for WrappedDecoder<T, D>
impl<T, D> Sync for WrappedDecoder<T, D>
impl<T, D> Unpin for WrappedDecoder<T, D>
impl<T, D> UnsafeUnpin for WrappedDecoder<T, D>where
D: UnsafeUnpin,
impl<T, D> UnwindSafe for WrappedDecoder<T, D>where
D: UnwindSafe,
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