1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//! Module: index::key::codec::error //! Responsibility: compact corruption taxonomy for raw index-key decode. //! Does not own: error class mapping. //! Boundary: referenced by codec decode helpers and tests. #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub(crate) enum IndexKeyDecodeError { InvalidKeyKind, InvalidSize, InvalidIndexIdBytes, InvalidIndexLength, TrailingBytes, TruncatedKey, ZeroLengthSegment, OverlongSegment, SegmentOverflow, }