#[non_exhaustive]pub enum Problem {
Database(String),
ForgedChange(ChangeId),
DamagedChange(ChangeId, String),
DamagedBlob(Hash),
WrongBlobKey(Hash),
UnreadableBlob(Hash, String),
BadBlobKeys(Hash),
KeylessBlob(Hash),
UnknownFile(PathBuf),
Unchecked(String),
}Expand description
Something wrong with a space.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Database(String)
SQLite’s check of the log file found it damaged, or could not run.
ForgedChange(ChangeId)
A stored change’s signature is not valid: the log file was damaged or tampered with. Opening the library trusts the signatures checked when changes arrived.
DamagedChange(ChangeId, String)
A stored change cannot be read, as the error says, such as one that this replica did not store: the log file was damaged or tampered with.
DamagedBlob(Hash)
The replica’s copy of a blob is damaged: it is moved aside, and a sync brings it again from a replica that holds it intact.
WrongBlobKey(Hash)
The replica’s copy of a blob is intact, but its key does not open it to its content: the key is wrong.
UnreadableBlob(Hash, String)
The replica’s copy of a blob cannot be read, as the error says.
BadBlobKeys(Hash)
Some stored keys of a sealed blob were bad, and opening the library removed them.
KeylessBlob(Hash)
No key of any space of the replica opens a sealed blob, and no purge explains why: unless another replica sends one, its content is lost. The replica’s spaces share their blob directory, so the personal space’s report names these.
UnknownFile(PathBuf)
A file in the replica’s blob directory is not a sealed blob, which the personal space’s report names.
Unchecked(String)
A check could not be finished, as the error says.
Trait Implementations§
impl Eq for Problem
impl StructuralPartialEq for Problem
Auto Trait Implementations§
impl Forget for Problem
impl Freeze for Problem
impl Move for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin for Problem
impl UnwindSafe for Problem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.