#[non_exhaustive]pub enum TransactionFailure {
UnknownAttributes(Vec<AttrType>),
MissingErrorCode,
IntegrityViolation,
}Expand description
Why a transaction failed although the server answered.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownAttributes(Vec<AttrType>)
The response carried comprehension-required attributes the client does not know (RFC 8489 sections 6.3.3 and 6.3.4): it is discarded and the transaction has failed.
MissingErrorCode
An error response without a usable ERROR-CODE (RFC 8489 section 6.3.4).
IntegrityViolation
Every response that arrived failed the integrity check, or, over a reliable transport, one did (RFC 8489 sections 9.1.4 and 9.2.5).
Trait Implementations§
Source§impl Clone for TransactionFailure
impl Clone for TransactionFailure
Source§impl Debug for TransactionFailure
impl Debug for TransactionFailure
impl Eq for TransactionFailure
Source§impl PartialEq for TransactionFailure
impl PartialEq for TransactionFailure
impl StructuralPartialEq for TransactionFailure
Auto Trait Implementations§
impl Forget for TransactionFailure
impl Freeze for TransactionFailure
impl Move for TransactionFailure
impl RefUnwindSafe for TransactionFailure
impl Send for TransactionFailurewhere
RawVecInner: Send,
impl Sync for TransactionFailurewhere
RawVecInner: Sync,
impl Unpin for TransactionFailure
impl UnsafeUnpin for TransactionFailure
impl UnwindSafe for TransactionFailurewhere
RawVecInner: 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