Enum libpijul::LocalApplyError
source · pub enum LocalApplyError<T: GraphTxnT + TreeTxnT> {
DependencyMissing {
hash: Hash,
},
ChangeAlreadyOnChannel {
hash: Hash,
},
Txn(TxnErr<T::GraphError>),
Tree(TreeErr<T::TreeError>),
Block {
block: Position<ChangeId>,
},
InvalidChange,
}
Variants§
DependencyMissing
ChangeAlreadyOnChannel
Txn(TxnErr<T::GraphError>)
Tree(TreeErr<T::TreeError>)
Block
Fields
§
block: Position<ChangeId>
InvalidChange
Trait Implementations§
source§impl<T: GraphTxnT + TreeTxnT> Error for LocalApplyError<T>where
Self: Debug + Display,
impl<T: GraphTxnT + TreeTxnT> Error for LocalApplyError<T>where Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<T: GraphTxnT + TreeTxnT> From<BlockError<<T as GraphTxnT>::GraphError>> for LocalApplyError<T>
impl<T: GraphTxnT + TreeTxnT> From<BlockError<<T as GraphTxnT>::GraphError>> for LocalApplyError<T>
source§fn from(err: BlockError<T::GraphError>) -> Self
fn from(err: BlockError<T::GraphError>) -> Self
Converts to this type from the input type.
source§impl<T: GraphTxnT + TreeTxnT> From<InconsistentChange<<T as GraphTxnT>::GraphError>> for LocalApplyError<T>
impl<T: GraphTxnT + TreeTxnT> From<InconsistentChange<<T as GraphTxnT>::GraphError>> for LocalApplyError<T>
source§fn from(err: InconsistentChange<T::GraphError>) -> Self
fn from(err: InconsistentChange<T::GraphError>) -> Self
Converts to this type from the input type.
source§impl<ChangestoreError: Error + 'static, T: GraphTxnT + TreeTxnT> From<LocalApplyError<T>> for UnrecordError<ChangestoreError, T>
impl<ChangestoreError: Error + 'static, T: GraphTxnT + TreeTxnT> From<LocalApplyError<T>> for UnrecordError<ChangestoreError, T>
source§fn from(source: LocalApplyError<T>) -> Self
fn from(source: LocalApplyError<T>) -> Self
Converts to this type from the input type.
source§impl<T: GraphTxnT + TreeTxnT> From<TreeErr<<T as TreeTxnT>::TreeError>> for LocalApplyError<T>
impl<T: GraphTxnT + TreeTxnT> From<TreeErr<<T as TreeTxnT>::TreeError>> for LocalApplyError<T>
source§impl<T: GraphTxnT + TreeTxnT> From<TxnErr<<T as GraphTxnT>::GraphError>> for LocalApplyError<T>
impl<T: GraphTxnT + TreeTxnT> From<TxnErr<<T as GraphTxnT>::GraphError>> for LocalApplyError<T>
source§fn from(source: TxnErr<T::GraphError>) -> Self
fn from(source: TxnErr<T::GraphError>) -> Self
Converts to this type from the input type.