pub enum AlbumStoreError {
Io(String),
Cbor(String),
Crypto(CryptoError),
UnsupportedVersion(u16),
MlsUnavailable(Uuid),
MlsState {
album: Uuid,
detail: String,
},
LedgerRejected(Uuid),
MalformedSeed(Uuid),
NotAnAlbumKeyEscrow,
EscrowAlbumMismatch {
expected: Uuid,
found: Uuid,
},
}Expand description
Errors from reading, writing, or decoding the album store.
Variants§
Io(String)
Filesystem error reading or writing albums.cbor.
Cbor(String)
The sealed plaintext was not decodable CBOR.
Crypto(CryptoError)
The master key did not open the sealed store (wrong key, or tampering).
UnsupportedVersion(u16)
The store declares a format version this build does not implement.
The store holds an OpenMlsAuthority state
blob but this build has no mls feature. A typed error, never a panic: the library still
opens, and the affected album is reported rather than silently dropped.
MlsState
Exporting or importing MLS group state failed.
LedgerRejected(Uuid)
A persisted reference ledger did not re-verify its admin signature chain — a tampered, forged, or rewound ledger. Never repaired silently.
MalformedSeed(Uuid)
A persisted signing seed was not the expected 64 bytes.
NotAnAlbumKeyEscrow
An album key escrow opened under the master key but is not one: it lacks the escrow’s domain separator, so it is some other blob the master key seals.
EscrowAlbumMismatch
An album key escrow was served under one album id and holds another — a server that swapped two of an account’s escrows. Refused rather than filed under either id.
Trait Implementations§
Source§impl Debug for AlbumStoreError
impl Debug for AlbumStoreError
Source§impl Display for AlbumStoreError
impl Display for AlbumStoreError
Source§impl Error for AlbumStoreError
impl Error for AlbumStoreError
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()
Source§impl From<CryptoError> for AlbumStoreError
impl From<CryptoError> for AlbumStoreError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Auto Trait Implementations§
impl Freeze for AlbumStoreError
impl RefUnwindSafe for AlbumStoreError
impl Send for AlbumStoreError
impl Sync for AlbumStoreError
impl Unpin for AlbumStoreError
impl UnsafeUnpin for AlbumStoreError
impl UnwindSafe for AlbumStoreError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more