pub enum FlatError<E> {
Foreign,
Corrupt,
Key(KeyError),
Engine(E),
}Expand description
A flat-layout store failed a structural precondition.
Every variant is non-retryable except Engine, which delegates to the
engine view’s own classification; for today’s backends that is also
non-retryable.
Variants§
Foreign
The store’s version row names a layout this build does not read (a newer major version, a read-only newer minor version, or a value that is not a 12-byte version at all).
Corrupt
A structural row (version, HCA counter or recent, node row) is malformed, or the allocator produced a state the layout cannot have produced (a prefix already in use, a corrupt counter).
Key(KeyError)
A directory path failed validation.
Engine(E)
The engine view failed.
Trait Implementations§
Source§impl<E> Error for FlatError<E>
impl<E> Error for FlatError<E>
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<E: Error + RetryableStorageError> RetryableStorageError for FlatError<E>
impl<E: Error + RetryableStorageError> RetryableStorageError for FlatError<E>
Source§fn is_retryable(&self) -> bool
fn is_retryable(&self) -> bool
Returns
true when the caller may safely rerun the entire logical
operation from the beginning. Read moreAuto Trait Implementations§
impl<E> Forget for FlatError<E>
impl<E> Freeze for FlatError<E>where
E: Freeze,
impl<E> Move for FlatError<E>
impl<E> RefUnwindSafe for FlatError<E>where
E: RefUnwindSafe,
impl<E> Send for FlatError<E>where
E: Send,
impl<E> Sync for FlatError<E>where
E: Sync,
impl<E> Unpin for FlatError<E>where
E: Unpin,
impl<E> UnsafeUnpin for FlatError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for FlatError<E>where
E: UnwindSafe,
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