pub enum StoreError {
Keystore(String),
BlobStore(String),
Lock(String),
Serialization(String),
Crypto(String),
InvalidEnvelope(String),
InvalidInput(String),
UnsupportedEnvelopeVersion(u32),
Db(Error),
IntegrityCheckFailed(String),
}Expand description
Errors raised by the storage primitives (vault, blobs, envelope, lock).
Variants carry a stringified detail rather than a concrete cause to keep the error type cheap to clone and FFI-friendly when consumers wrap it in their own typed error.
Variants§
Keystore(String)
Errors coming from the device keystore.
BlobStore(String)
Errors coming from the blob store.
Lock(String)
Errors coming from the storage lock.
Serialization(String)
Serialization / deserialization failures (envelope CBOR, etc.).
Crypto(String)
Cryptographic failures (AEAD seal/open, RNG, etc.).
InvalidEnvelope(String)
Invalid or malformed key envelope (e.g. wrong length, bad format).
InvalidInput(String)
Invalid input supplied to a storage operation.
UnsupportedEnvelopeVersion(u32)
Envelope written by an unsupported version.
Db(Error)
Underlying database error from the encrypted-SQLite wrapper.
IntegrityCheckFailed(String)
PRAGMA integrity_check reported corruption.
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()