#[non_exhaustive]pub enum TransactionFailure {
Unsupported,
Duplicate,
Install,
}Expand description
Why a transaction could not be captured or applied.
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.
Unsupported
ktmw32.dll or its thread-transaction entry points are unavailable.
Distinct from “the thread had no transaction”: one says the platform cannot answer, the other is an answer.
Duplicate
The transaction handle could not be duplicated.
Install
Windows refused to install or restore a thread transaction.
Trait Implementations§
Source§impl Clone for TransactionFailure
impl Clone for TransactionFailure
Source§fn clone(&self) -> TransactionFailure
fn clone(&self) -> TransactionFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransactionFailure
Source§impl Debug for TransactionFailure
impl Debug for TransactionFailure
impl Eq for TransactionFailure
Source§impl Hash for TransactionFailure
impl Hash for TransactionFailure
Source§impl PartialEq for TransactionFailure
impl PartialEq for TransactionFailure
impl StructuralPartialEq for TransactionFailure
Auto Trait Implementations§
impl Freeze for TransactionFailure
impl RefUnwindSafe for TransactionFailure
impl Send for TransactionFailure
impl Sync for TransactionFailure
impl Unpin for TransactionFailure
impl UnsafeUnpin for TransactionFailure
impl UnwindSafe for TransactionFailure
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