Enum holochain_state::source_chain::SourceChainError [−][src]
pub enum SourceChainError {
Show 28 variants
ChainEmpty,
HeadMoved(Vec<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),
Other(Box<dyn Error + Send + Sync>),
}
Variants
HeadMoved(Vec<SignedHeaderHashed>, Vec<EntryHashed>, Option<HeaderHash>, Option<(HeaderHash, u32, Timestamp)>)
Tuple Fields of HeadMoved
0: Vec<SignedHeaderHashed>
1: Vec<EntryHashed>
2: Option<HeaderHash>
3: Option<(HeaderHash, u32, Timestamp)>
ScratchError(ScratchError)
Tuple Fields of ScratchError
0: ScratchError
InvalidStructure(ChainInvalidReason)
Tuple Fields of InvalidStructure
MalformedEntry(EntryHash)
Tuple Fields of MalformedEntry
0: EntryHash
SerializationError(SerializedBytesError)
Tuple Fields of SerializationError
DatabaseError(DatabaseError)
Tuple Fields of DatabaseError
SerdeJsonError(String)
Tuple Fields of SerdeJsonError
0: String
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
InvalidLink(String)
Tuple Fields of InvalidLink
0: String
KeystoreError(KeystoreError)
Tuple Fields of KeystoreError
DhtOpError(DhtOpError)
Tuple Fields of DhtOpError
0: DhtOpError
HolochainP2pError(HolochainP2pError)
Tuple Fields of HolochainP2pError
ElementMissing(String)
Element signature doesn’t validate against the header
Tuple Fields of ElementMissing
0: String
ElementGroupError(ElementGroupError)
Tuple Fields of ElementGroupError
StateMutationError(StateMutationError)
Tuple Fields of StateMutationError
StateQueryError(StateQueryError)
Tuple Fields of StateQueryError
SyncScratchError(SyncScratchError)
Tuple Fields of SyncScratchError
CounterSigningError(CounterSigningError)
Tuple Fields of CounterSigningError
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