#[non_exhaustive]pub enum LogError {
Show 25 variants
OtherSpace,
InvalidSignature,
UnknownEpoch(u64),
Decryption,
Operations(Error),
OtherPayload,
OtherKey,
UnknownChange,
MixedGoverning,
GoverningEpoch,
NotAfterParents,
RejectedParent,
UnexpectedRoot,
SecondRoot,
UngovernedRoot,
UnknownAuthor,
TooManyWaiting,
SecretsLocked,
CannotPurge,
UnknownBlob,
InvalidPurge,
CannotRestore,
Storage,
Account(&'static str),
Clock(ClockError),
}Expand description
Why a change could not be made or was rejected.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OtherSpace
The change belongs to another space.
InvalidSignature
The change’s signature is not valid for its author.
UnknownEpoch(u64)
The change’s key is wrapped with a space key that this replica does not have.
Decryption
The change’s payload does not open with the change’s key.
Operations(Error)
The change’s payload does not have the form of a payload, or does not seal the statements that the change’s header names.
OtherPayload
The sealed payload is not the one whose hash the change’s header holds.
OtherKey
The wrapped key does not open to the key whose hash the change’s header holds.
UnknownChange
The replica does not have the change that a payload or key belongs to.
MixedGoverning
A change that sets the keys of replicas would hold something else too.
GoverningEpoch
A change that governs the space is wrapped with another key than the space’s first, which every replica holds, so that some replicas could not read it.
NotAfterParents
The change is not later than one of its parents.
RejectedParent
One of the change’s parents, or one of their ancestors, was rejected.
UnexpectedRoot
A change without parents that is not the space’s first change, which the replica was told.
SecondRoot
A change without parents, in a space whose first change governs it and that has one already.
UngovernedRoot
A change without parents that does not govern the space, in a space whose first change must govern it.
UnknownAuthor
No governing change of the space lists the key that signed the change, in a space whose first change governs it. The change is not kept, until such a listing arrives.
TooManyWaiting
Too many changes are already waiting for their parents.
SecretsLocked
Writing or purging a secret value needs the space’s secrets key, or the opened value.
CannotPurge
A statement is not one that this replica can purge: it does not have it, or it was asserted in a change that governs the space, or whose payload it cannot read.
UnknownBlob
This replica has no key for the blob to purge.
InvalidPurge
The change purges or restores a change that it does not build on, or one that governs the space, or a statement that is not sealed in a change it builds on; or it restores and purges at once.
CannotRestore
A change that restores what purges destroyed would not count: its author’s role does not allow purging what it restores.
Storage
The storage of the state could not be read or written, so the log no longer matches
it and must be built again. Log::storage_error says why.
Account(&'static str)
A page of a replica’s account of what it holds does not read
(AccountPage).
Clock(ClockError)
The change’s timestamp is too far ahead of the wall clock, or the clock has run out of timestamps.
Trait Implementations§
impl Eq for LogError
Source§impl Error for LogError
impl Error for LogError
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()