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)
ScratchError(ScratchError)
Tuple Fields
0: ScratchError
ChainLocked
LockExpired
DirtyCounterSigningWrite
InvalidStructure(ChainInvalidReason)
Tuple Fields
MissingHead
MalformedEntry(EntryHash)
Tuple Fields
0: EntryHash
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
InvalidLink(String)
Tuple Fields
0: String
KeystoreError(KeystoreError)
Tuple Fields
DhtOpError(DhtOpError)
Tuple Fields
0: DhtOpError
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>)
Other
Implementations
Trait Implementations
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
impl !RefUnwindSafe for SourceChainError
impl Send for SourceChainError
impl Sync for SourceChainError
impl Unpin for SourceChainError
impl !UnwindSafe for SourceChainError
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
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
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
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