pub type DecodeIncompleteActionOf<C> = DecodeIncompleteAction<<C as Codec>::Value>;Expand description
Incomplete-decode action for a codec-backed 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.