As far as I can tell, when cbor_event deserializes from a BufRead instance, it only calls fill_buf when calling get (and then only once), not when calling advance. So, any arbitrary parsing function may potentially return a NotEnough error in the middle of its parsing, requiring any higher-level protocol parsing built atop that to handle any parsing function failing with NotEnough and retry after fetching more data.
As far as I can tell, when cbor_event deserializes from a
BufReadinstance, it only callsfill_bufwhen callingget(and then only once), not when callingadvance. So, any arbitrary parsing function may potentially return aNotEnougherror in the middle of its parsing, requiring any higher-level protocol parsing built atop that to handle any parsing function failing withNotEnoughand retry after fetching more data.