pub enum ConnectionRejection {
TxRequired,
TxForbidden,
CrossDatasource,
CrossDriver,
UnknownDatasource,
RegistryUnavailable,
TxConnectionBusy,
}Expand description
SQL 执行前拒绝原因,不与数据库调用失败混合。
Variants§
TxRequired
当前操作要求事务,但没有可用的 ambient transaction。
TxForbidden
当前操作禁止加入已有事务。
CrossDatasource
目标数据源与当前事务绑定的数据源不同。
CrossDriver
目标驱动与当前事务绑定的驱动不同。
UnknownDatasource
目标名称不在数据源目录中。
数据源注册表尚未可用或已经关闭。
TxConnectionBusy
事务连接已被其它操作独占,当前调用无法取得访问权。
Trait Implementations§
Source§impl Clone for ConnectionRejection
impl Clone for ConnectionRejection
impl Copy for ConnectionRejection
Source§impl Debug for ConnectionRejection
impl Debug for ConnectionRejection
impl Eq for ConnectionRejection
Source§impl PartialEq for ConnectionRejection
impl PartialEq for ConnectionRejection
impl StructuralPartialEq for ConnectionRejection
Auto Trait Implementations§
impl Forget for ConnectionRejection
impl Freeze for ConnectionRejection
impl Move for ConnectionRejection
impl RefUnwindSafe for ConnectionRejection
impl Send for ConnectionRejection
impl Sync for ConnectionRejection
impl Unpin for ConnectionRejection
impl UnsafeUnpin for ConnectionRejection
impl UnwindSafe for ConnectionRejection
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