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,
Corruption,
MakeChange(MakeChangeError<T>),
}Variants§
DependencyMissing
ChangeAlreadyOnChannel
Txn(TxnErr<T::GraphError>)
Tree(TreeErr<T::TreeError>)
Block
Fields
§
block: Position<ChangeId>InvalidChange
Corruption
MakeChange(MakeChangeError<T>)
Trait Implementations§
Source§impl<T: GraphTxnT + TreeTxnT> Error for LocalApplyError<T>where
TxnErr<T::GraphError>: Error + 'static,
TreeErr<T::TreeError>: Error + 'static,
MakeChangeError<T>: Error + 'static,
Self: Debug + Display,
impl<T: GraphTxnT + TreeTxnT> Error for LocalApplyError<T>where
TxnErr<T::GraphError>: Error + 'static,
TreeErr<T::TreeError>: Error + 'static,
MakeChangeError<T>: Error + 'static,
Self: Debug + Display,
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<MakeChangeError<T>> for LocalApplyError<T>
impl<T: GraphTxnT + TreeTxnT> From<MakeChangeError<T>> for LocalApplyError<T>
Source§fn from(source: MakeChangeError<T>) -> Self
fn from(source: MakeChangeError<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.
Auto Trait Implementations§
impl<T> Freeze for LocalApplyError<T>
impl<T> RefUnwindSafe for LocalApplyError<T>
impl<T> Send for LocalApplyError<T>
impl<T> Sync for LocalApplyError<T>
impl<T> Unpin for LocalApplyError<T>
impl<T> UnsafeUnpin for LocalApplyError<T>
impl<T> UnwindSafe for LocalApplyError<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more