Skip to main content

mark_decode_side

Function mark_decode_side 

Source
pub fn mark_decode_side(e: Error) -> Error
Expand description

Tags e as having been raised by a read below a codec decoder.

Preserves io::Error::kind and the Display text. Idempotent — a stream decoded through three codec layers is wrapped three times, and only the innermost wrap allocates; the outer two hand the already-tagged error straight back.