pub enum IndexInsertError {
UniqueViolation,
CorruptedEntry(IndexEntryCorruption),
EntryTooLarge {
keys: usize,
},
}Expand description
IndexInsertError
Errors that may occur while inserting into an index. Represents both logical constraint violations and corruption.
Variants§
Trait Implementations§
Source§impl Debug for IndexInsertError
impl Debug for IndexInsertError
Source§impl Display for IndexInsertError
impl Display for IndexInsertError
Source§impl Error for IndexInsertError
impl Error for IndexInsertError
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.
Auto Trait Implementations§
impl Freeze for IndexInsertError
impl RefUnwindSafe for IndexInsertError
impl Send for IndexInsertError
impl Sync for IndexInsertError
impl Unpin for IndexInsertError
impl UnwindSafe for IndexInsertError
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