pub type CodecDecodeExactValueWithFlushResult<V, E> = Result<(V, usize), TranscodeError<CodecDecodeError<E>>>;Expand description
Result type returned by exact decode-and-flush one-value helpers.
The successful value is (value, 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 CodecDecodeExactValueWithFlushResult<V, E> {
Ok((V, usize)),
Err(TranscodeError<CodecDecodeError<E>>),
}Variants§
Ok((V, usize))
Contains the success value
Err(TranscodeError<CodecDecodeError<E>>)
Contains the error value