Skip to main content

CodecDecodeValueWithFlushResult

Type Alias CodecDecodeValueWithFlushResult 

Source
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§

§1.0.0

Ok((V, NonZero<usize>, usize))

Contains the success value

§1.0.0

Err(TranscodeError<CodecDecodeError<E>>)

Contains the error value