Closure transaction's TransactionError and it's wrapped error #859
-
Hello, I have been trying to use the closure transaction API, mentioned in the docs as the preferred option, and on error the closure returns a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Oh I missed the part that the TransactionError is an enum, so it is easy to unwrap with match. The _ in the tutorial turbofish is probably the transaction closure signature if I understand it correctly. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the updates! @szattila98 :D |
Beta Was this translation helpful? Give feedback.
Oh I missed the part that the TransactionError is an enum, so it is easy to unwrap with match. The _ in the tutorial turbofish is probably the transaction closure signature if I understand it correctly.