pub enum StoreError {
Io(Error),
Serialization(Error),
Sqlite(Error),
NotFound(SessionId),
Corrupted(SessionId),
Join(JoinError),
Internal(String),
RealmManifestLockTimeout {
realm_id: String,
},
RealmBackendMismatch {
realm_id: String,
requested: String,
existing: String,
},
UnsupportedRealmBackend {
realm_id: String,
backend: String,
},
RealmIdentityMismatch {
requested: String,
existing: String,
},
InvalidRealmSlug(String),
}Expand description
Backend-specific error type used internally by meerkat-store implementations.
External consumers should use SessionStoreError (from meerkat-core) for
the SessionStore trait boundary. This type carries backend-specific variants
(for example rusqlite) that the trait contract intentionally erases.
Variants§
Io(Error)
Serialization(Error)
Sqlite(Error)
NotFound(SessionId)
Corrupted(SessionId)
Join(JoinError)
Internal(String)
RealmManifestLockTimeout
RealmBackendMismatch
UnsupportedRealmBackend
RealmIdentityMismatch
The requested realm id sanitizes to the same on-disk path as an
existing manifest that pins a different realm identity (e.g. the
raw slugs a.b and a_b both sanitize to the a_b directory).
Two distinct realm identities must never silently share one
manifest, so the path-aliased open is rejected fail-closed rather
than handing back the wrong realm’s manifest.
InvalidRealmSlug(String)
Persisted manifest carried a realm id that fails the typed
slug validator (wave-c C-12 sibling retype — the on-disk form
is free-string but the domain type is RealmId which enforces
the slug grammar). Reported when an on-disk manifest was
hand-edited to an unparseable realm slug.
Implementations§
Source§impl StoreError
impl StoreError
Sourcepub fn into_session_store_error(self) -> SessionStoreError
pub fn into_session_store_error(self) -> SessionStoreError
Convert to the backend-agnostic SessionStoreError at the trait boundary.
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()