pub type DecodeIncompleteActionOf<C> = DecodeIncompleteAction<<C as Codec>::Value>;Expand description
Incomplete-decode action for a codec-backed decode hook, using that codec’s logical value type for replacements.
This alias keeps the hook’s action type tied to its codec, so replacement values have the same type as values produced by decoding that codec.
§Type Parameters
C: Codec whose logical value type is emitted by the decode hook.
Aliased Type§
pub enum DecodeIncompleteActionOf<C> {
Reject,
Skip,
Emit {
value: <C as Codec>::Value,
},
}Variants§
Reject
Reject the incomplete source tail.
The decode engine reports the codec-domain error when available, or an
crate::TranscodeFailure::IncompleteInput framework error otherwise.
Skip
Consume the entire incomplete source tail without output.
Emit
Consume the entire incomplete source tail and emit one replacement.