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,
MakeChange(MakeChangeError<T>),
}
Variants§
DependencyMissing
ChangeAlreadyOnChannel
Txn(TxnErr<T::GraphError>)
Tree(TreeErr<T::TreeError>)
Block
Fields
§
block: Position<ChangeId>
InvalidChange
MakeChange(MakeChangeError<T>)
Trait Implementations§
source§impl<T: GraphTxnT + TreeTxnT> Error for LocalApplyError<T>where
MakeChangeError<T>: Error + 'static,
Self: Debug + Display,
impl<T: GraphTxnT + TreeTxnT> Error for LocalApplyError<T>where MakeChangeError<T>: Error + 'static, 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<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> RefUnwindSafe for LocalApplyError<T>where <T as GraphTxnT>::GraphError: RefUnwindSafe, <T as TreeTxnT>::TreeError: RefUnwindSafe,
impl<T> Send for LocalApplyError<T>
impl<T> Sync for LocalApplyError<T>
impl<T> Unpin for LocalApplyError<T>where <T as GraphTxnT>::GraphError: Unpin, <T as TreeTxnT>::TreeError: Unpin,
impl<T> UnwindSafe for LocalApplyError<T>where <T as GraphTxnT>::GraphError: UnwindSafe, <T as TreeTxnT>::TreeError: UnwindSafe,
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