pub type CodecDecodeValueWithFlushResult<V, E> = Result<(V, NonZeroUsize, usize), TranscodeError<CodecDecodeError<E>>>;Expand description
Result type returned by decode-and-flush one-value helpers.
The successful value is (value, consumed, flushed). Framework buffer
failures are reported by TranscodeError. Codec-domain decode failures
are wrapped in CodecDecodeError and stored in the
TranscodeError::Domain branch.
Aliased Type§
pub enum CodecDecodeValueWithFlushResult<V, E> {
Ok((V, NonZero<usize>, usize)),
Err(TranscodeError<CodecDecodeError<E>>),
}Variants§
Ok((V, NonZero<usize>, usize))
Contains the success value
Err(TranscodeError<CodecDecodeError<E>>)
Contains the error value