pub struct TransactionErrorInfo { /* private fields */ }Expand description
Transaction error information.
since 0.2.0
Implementations§
Source§impl TransactionErrorInfo
impl TransactionErrorInfo
Sourcepub fn server_error(&self) -> Option<&TgError>
pub fn server_error(&self) -> Option<&TgError>
Returns occurred error in the target transaction, only if the transaction has been accidentally aborted.
Sourcepub fn diagnostic_code(&self) -> Option<&DiagnosticCode>
pub fn diagnostic_code(&self) -> Option<&DiagnosticCode>
Returns diagnostic code if error occurred in the target transaction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransactionErrorInfo
impl !RefUnwindSafe for TransactionErrorInfo
impl !Send for TransactionErrorInfo
impl !Sync for TransactionErrorInfo
impl Unpin for TransactionErrorInfo
impl !UnwindSafe for TransactionErrorInfo
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