pub struct NoopDecoder;Expand description
In some cases it is not necessary or not desirable to decode the incoming
message’s bytes on consumption. This convenience implementation of Decoder
enables such cases by not doing anything and returning a unit type ().
The original, un-decoded bytes of the
message are always available on the Envelope.
See the Decoder documentation for more details.
Trait Implementations§
Source§impl Decoder for NoopDecoder
impl Decoder for NoopDecoder
Source§type Error = Infallible
type Error = Infallible
The type of error produced when decoding is not possible.
Auto Trait Implementations§
impl Freeze for NoopDecoder
impl RefUnwindSafe for NoopDecoder
impl Send for NoopDecoder
impl Sync for NoopDecoder
impl Unpin for NoopDecoder
impl UnwindSafe for NoopDecoder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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