Enum holochain::core::SourceChainError[][src]

pub enum SourceChainError {
Show 28 variants ChainEmpty, HeadMoved(Vec<(Option<Zome>, SignedHeaderHashed), Global>, Vec<HoloHashed<Entry>, Global>, Option<HoloHash<Header>>, Option<(HoloHash<Header>, u32, Timestamp)>), TimestampError(TimestampError), ScratchError(ScratchError), ChainLocked, LockExpired, DirtyCounterSigningWrite, InvalidStructure(ChainInvalidReason), MissingHead, MalformedEntry(HoloHash<Entry>), 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), Other(Box<dyn Error + Send + Sync + 'static, Global>),
}

Variants

ChainEmpty
TimestampError(TimestampError)

Tuple Fields of TimestampError

0: TimestampError
ScratchError(ScratchError)

Tuple Fields of ScratchError

0: ScratchError
ChainLocked
LockExpired
DirtyCounterSigningWrite
InvalidStructure(ChainInvalidReason)

Tuple Fields of InvalidStructure

0: ChainInvalidReason
MissingHead
MalformedEntry(HoloHash<Entry>)

Tuple Fields of MalformedEntry

0: HoloHash<Entry>
SerializationError(SerializedBytesError)

Tuple Fields of SerializationError

0: SerializedBytesError
DatabaseError(DatabaseError)

Tuple Fields of DatabaseError

0: DatabaseError
SerdeJsonError(String)

Tuple Fields of SerdeJsonError

0: String
InvalidSignature

Element signature doesn’t validate against the header

InvalidPreviousHeader(String)

Element previous header reference is invalid

Tuple Fields of InvalidPreviousHeader

0: String
InvalidCommit(String)

Tuple Fields of InvalidCommit

0: String

Tuple Fields of InvalidLink

0: String
KeystoreError(KeystoreError)

Tuple Fields of KeystoreError

0: KeystoreError
DhtOpError(DhtOpError)

Tuple Fields of DhtOpError

0: DhtOpError
HolochainP2pError(HolochainP2pError)

Tuple Fields of HolochainP2pError

0: HolochainP2pError
ScratchNotFresh
ElementMissing(String)

Element signature doesn’t validate against the header

Tuple Fields of ElementMissing

0: String
ElementGroupError(ElementGroupError)

Tuple Fields of ElementGroupError

0: ElementGroupError
StateMutationError(StateMutationError)

Tuple Fields of StateMutationError

0: StateMutationError
StateQueryError(StateQueryError)

Tuple Fields of StateQueryError

0: StateQueryError
SyncScratchError(SyncScratchError)

Tuple Fields of SyncScratchError

0: SyncScratchError
CounterSigningError(CounterSigningError)

Tuple Fields of CounterSigningError

0: CounterSigningError
Other(Box<dyn Error + Send + Sync + 'static, Global>)

Other

Tuple Fields of Other

0: Box<dyn Error + Send + Sync + 'static, Global>

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.

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

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

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

The type for metadata in pointers and references to Self.

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