Skip to main content

is_incomplete_error

Function is_incomplete_error 

Source
pub(crate) fn is_incomplete_error(e: &CodecError) -> bool
Expand description

Check if a codec error indicates incomplete data (need more bytes).

The list of spellings this admits lives on the error rather than here. It was written out twice — once here and once in moqtap-client’s framed readers — and the two copies disagreed: this one admitted a truncated varint and that one did not, so an object still arriving read as a malformed stream on every draft. One answer, in the crate that defines the error.