pub fn is_eof(&self) -> bool {
        self.classify() == Category::Eof
    }
Returns true if this error was caused by prematurely reaching the end of
the input data.

Callers that process streaming input may be interested in retrying the
deserialization once more data is available.
src/error.rs