Enum holochain_state::source_chain::SourceChainError[][src]

pub enum SourceChainError {
Show 29 variants ChainEmpty, HeadMoved(Vec<(Option<Zome>, SignedHeaderHashed)>, Vec<EntryHashed>, Option<HeaderHash>, Option<(HeaderHash, u32, Timestamp)>), TimestampError(TimestampError), ScratchError(ScratchError), ChainLocked, LockExpired, DirtyCounterSigningWrite, InvalidStructure(ChainInvalidReason), MissingHead, MalformedEntry(EntryHash), SerializationError(SerializedBytesError), DatabaseError(DatabaseError), SerdeJsonError(String), InvalidSignature, InvalidPreviousHeader(String), InvalidCommit(String), InvalidLink(String), KeystoreError(KeystoreError), DhtOpError(DhtOpError), HolochainP2pError(HolochainP2pError), ScratchNotFresh, ElementMissing(String), ElementGroupError(ElementGroupError), StateMutationError(StateMutationError), StateQueryError(StateQueryError), SyncScratchError(SyncScratchError), CounterSigningError(CounterSigningError), SourceChainMissing, Other(Box<dyn Error + Send + Sync>),
}

Variants

ChainEmpty

HeadMoved(Vec<(Option<Zome>, SignedHeaderHashed)>, Vec<EntryHashed>, Option<HeaderHash>, Option<(HeaderHash, u32, Timestamp)>)

TimestampError(TimestampError)

Tuple Fields

0: TimestampError

ScratchError(ScratchError)

Tuple Fields

ChainLocked

LockExpired

DirtyCounterSigningWrite

InvalidStructure(ChainInvalidReason)

Tuple Fields

MissingHead

MalformedEntry(EntryHash)

Tuple Fields

SerializationError(SerializedBytesError)

Tuple Fields

DatabaseError(DatabaseError)

Tuple Fields

SerdeJsonError(String)

Tuple Fields

0: String

InvalidSignature

Element signature doesn’t validate against the header

InvalidPreviousHeader(String)

Tuple Fields

0: String

Element previous header reference is invalid

InvalidCommit(String)

Tuple Fields

0: String

Tuple Fields

0: String

KeystoreError(KeystoreError)

Tuple Fields

DhtOpError(DhtOpError)

Tuple Fields

HolochainP2pError(HolochainP2pError)

Tuple Fields

ScratchNotFresh

ElementMissing(String)

Tuple Fields

0: String

Element signature doesn’t validate against the header

ElementGroupError(ElementGroupError)

Tuple Fields

StateMutationError(StateMutationError)

Tuple Fields

StateQueryError(StateQueryError)

Tuple Fields

SyncScratchError(SyncScratchError)

Tuple Fields

CounterSigningError(CounterSigningError)

Tuple Fields

SourceChainMissing

Other(Box<dyn Error + Send + Sync>)

Tuple Fields

0: Box<dyn Error + Send + Sync>

Other

Implementations

promote a custom error type to a SourceChainError

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more