pub enum MatrixKeysStoreError {
Db(Error),
OneTimeKeyConflict(String),
WrongBackupVersion,
}Expand description
Why a write into this store was refused, on top of a real database
failure — same shape as crate::store::MatrixStoreError.
Variants§
Db(Error)
OneTimeKeyConflict(String)
add_one_time_keys found an existing key_id whose stored
key_json differs from the newly submitted one — the Matrix spec’s
rule is that a resubmission with identical content is a silent
no-op, but different content for the same key_id is refused. The
String is the conflicting key_id.
WrongBackupVersion
put_backup_sessions was called with a version that is not the
caller’s current non-deleted key-backup version.
Trait Implementations§
Source§impl Debug for MatrixKeysStoreError
impl Debug for MatrixKeysStoreError
Source§impl From<Error> for MatrixKeysStoreError
impl From<Error> for MatrixKeysStoreError
Source§impl From<MatrixKeysStoreError> for MatrixError
impl From<MatrixKeysStoreError> for MatrixError
Source§fn from(e: MatrixKeysStoreError) -> Self
fn from(e: MatrixKeysStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MatrixKeysStoreError
impl !UnwindSafe for MatrixKeysStoreError
impl Freeze for MatrixKeysStoreError
impl Send for MatrixKeysStoreError
impl Sync for MatrixKeysStoreError
impl Unpin for MatrixKeysStoreError
impl UnsafeUnpin for MatrixKeysStoreError
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