pub trait DecodeRecordRef {
// Required method
fn decode_record_ref(&mut self) -> Result<Option<RecordRef<'_>>>;
}Expand description
Trait for types that decode references to DBN records of a dynamic type.
Required Methods§
sourcefn decode_record_ref(&mut self) -> Result<Option<RecordRef<'_>>>
fn decode_record_ref(&mut self) -> Result<Option<RecordRef<'_>>>
Tries to decode a generic reference a record. Returns Ok(None) if input
has been exhausted.
§Errors
This function returns an error if the underlying reader returns an error of a
kind other than io::ErrorKind::UnexpectedEof upon reading.
If the length property of the record is invalid, an
Error::Decode will be returned.