Skip to main content

LogError

Enum LogError 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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§

Source§

impl Clone for LogError

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LogError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for LogError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for LogError

Source§

impl Error for LogError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Replaced by Error::source.
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ClockError> for LogError

Source§

fn from(source: ClockError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for LogError

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LogError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.