pub enum SqliteErrorClass {
Transient,
Corrupt,
Other,
}Expand description
Storage-level classification of a SQLite error.
This is deliberately narrower than the store-boundary taxonomy (transient / stale / corrupt): staleness (CAS conflicts, revision guards) is a store-contract concept invisible at this layer, so store crates map their own guard failures to their stale variants and use this classification for everything that reaches raw SQLite.
Variants§
Transient
Lock contention or interruption; safe to retry only for idempotent or CAS-keyed operations (see the crate-level retryability note).
Corrupt
The file is not (or no longer) a usable database.
Other
Everything else: constraint violations, misuse, API errors. The store layer decides what these mean.
Trait Implementations§
Source§impl Clone for SqliteErrorClass
impl Clone for SqliteErrorClass
Source§fn clone(&self) -> SqliteErrorClass
fn clone(&self) -> SqliteErrorClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SqliteErrorClass
Source§impl Debug for SqliteErrorClass
impl Debug for SqliteErrorClass
impl Eq for SqliteErrorClass
Source§impl PartialEq for SqliteErrorClass
impl PartialEq for SqliteErrorClass
impl StructuralPartialEq for SqliteErrorClass
Auto Trait Implementations§
impl Freeze for SqliteErrorClass
impl RefUnwindSafe for SqliteErrorClass
impl Send for SqliteErrorClass
impl Sync for SqliteErrorClass
impl Unpin for SqliteErrorClass
impl UnsafeUnpin for SqliteErrorClass
impl UnwindSafe for SqliteErrorClass
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