pub enum IndexEntryCorruption {
TooLarge {
len: usize,
},
MissingLength,
TooManyKeys {
count: usize,
},
LengthMismatch,
InvalidKey,
DuplicateKey,
EmptyEntry,
NonUniqueEntry {
keys: usize,
},
MissingKey {
index_key: Box<RawIndexKey>,
entity_key: Key,
},
}Expand description
IndexEntryCorruption
Variants§
TooLarge
MissingLength
TooManyKeys
LengthMismatch
InvalidKey
DuplicateKey
EmptyEntry
NonUniqueEntry
MissingKey
Implementations§
Source§impl IndexEntryCorruption
impl IndexEntryCorruption
pub fn missing_key(index_key: RawIndexKey, entity_key: Key) -> Self
Trait Implementations§
Source§impl Debug for IndexEntryCorruption
impl Debug for IndexEntryCorruption
Source§impl Display for IndexEntryCorruption
impl Display for IndexEntryCorruption
Source§impl Error for IndexEntryCorruption
impl Error for IndexEntryCorruption
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<IndexEntryCorruption> for IndexInsertError
impl From<IndexEntryCorruption> for IndexInsertError
Source§fn from(source: IndexEntryCorruption) -> Self
fn from(source: IndexEntryCorruption) -> Self
Converts to this type from the input type.
Source§impl From<IndexEntryCorruption> for IndexRemoveError
impl From<IndexEntryCorruption> for IndexRemoveError
Source§fn from(source: IndexEntryCorruption) -> Self
fn from(source: IndexEntryCorruption) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IndexEntryCorruption
impl RefUnwindSafe for IndexEntryCorruption
impl Send for IndexEntryCorruption
impl Sync for IndexEntryCorruption
impl Unpin for IndexEntryCorruption
impl UnsafeUnpin for IndexEntryCorruption
impl UnwindSafe for IndexEntryCorruption
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more