pub struct Decoder3<A, B, C>{ /* private fields */ }Expand description
A decoder which decodes three objects, one after the other.
Implementations§
Trait Implementations§
Source§impl<A, B, C> Decoder for Decoder3<A, B, C>
impl<A, B, C> Decoder for Decoder3<A, B, C>
Source§type Output = (<A as Decoder>::Output, <B as Decoder>::Output, <C as Decoder>::Output)
type Output = (<A as Decoder>::Output, <B as Decoder>::Output, <C as Decoder>::Output)
The type that this decoder produces when decoding is complete.
Source§type Error = Decoder3Error<<A as Decoder>::Error, <B as Decoder>::Error, <C as Decoder>::Error>
type Error = Decoder3Error<<A as Decoder>::Error, <B as Decoder>::Error, <C as Decoder>::Error>
The error type that this decoder can produce.
Source§fn push_bytes(&mut self, bytes: &mut &[u8]) -> Result<bool, Self::Error>
fn push_bytes(&mut self, bytes: &mut &[u8]) -> Result<bool, Self::Error>
Push bytes into the decoder, consuming as much as possible. Read more
Source§fn end(self) -> Result<Self::Output, Self::Error>
fn end(self) -> Result<Self::Output, Self::Error>
Complete the decoding process and return the final result. Read more
Source§fn read_limit(&self) -> usize
fn read_limit(&self) -> usize
Returns the maximum number of bytes this decoder can consume without over-reading. Read more
Auto Trait Implementations§
impl<A, B, C> Freeze for Decoder3<A, B, C>
impl<A, B, C> RefUnwindSafe for Decoder3<A, B, C>where
C: RefUnwindSafe,
<A as Decoder>::Output: RefUnwindSafe,
<B as Decoder>::Output: RefUnwindSafe,
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B, C> Send for Decoder3<A, B, C>
impl<A, B, C> Sync for Decoder3<A, B, C>
impl<A, B, C> Unpin for Decoder3<A, B, C>
impl<A, B, C> UnwindSafe for Decoder3<A, B, C>where
C: UnwindSafe,
<A as Decoder>::Output: UnwindSafe,
<B as Decoder>::Output: UnwindSafe,
A: UnwindSafe,
B: 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