pub enum TxEntryError<E> {
Lookup(DataSourceLookupError),
Run(TxRunError<E>),
}Expand description
业务作用:让加法事务入口分别保留 datasource 查找与事务执行失败,避免调用方解析文本。
Variants§
Lookup(DataSourceLookupError)
事务开始前的 datasource 名称、状态或 driver 校验失败。
Run(TxRunError<E>)
已进入对应 typed runtime 后的事务裁决失败。
Trait Implementations§
Source§impl<E: Debug> Debug for TxEntryError<E>
impl<E: Debug> Debug for TxEntryError<E>
Source§impl<E: Display> Display for TxEntryError<E>
impl<E: Display> Display for TxEntryError<E>
Source§impl<E> Error for TxEntryError<E>
impl<E> Error for TxEntryError<E>
1.30.0 · 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()
Auto Trait Implementations§
impl<E> Forget for TxEntryError<E>
impl<E> Freeze for TxEntryError<E>where
TxRunError<E>: Freeze,
impl<E> Move for TxEntryError<E>
impl<E> RefUnwindSafe for TxEntryError<E>where
TxRunError<E>: RefUnwindSafe,
impl<E> Send for TxEntryError<E>where
TxRunError<E>: Send,
impl<E> Sync for TxEntryError<E>where
TxRunError<E>: Sync,
impl<E> Unpin for TxEntryError<E>where
TxRunError<E>: Unpin,
impl<E> UnsafeUnpin for TxEntryError<E>where
TxRunError<E>: UnsafeUnpin,
impl<E> UnwindSafe for TxEntryError<E>where
TxRunError<E>: 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