pub struct AsyncAppTransaction;Available on crate feature
async only.Expand description
Async wrapper for AppTransaction.shared.
Returns a VerificationResult<AppTransaction>; use
VerificationResult::payload_value to read the app transaction only
after StoreKit has verified it.
Requires macOS 13.0+.
§Notes
AppTransaction.shared may prompt the user to authenticate with the
App Store, so it should be awaited before presenting any gated content.
Implementations§
Source§impl AsyncAppTransaction
impl AsyncAppTransaction
Asynchronously fetch AppTransaction.shared.
Equivalent to AppTransaction.shared in Swift.
§Errors
Returns a NotSupported error on macOS < 13.0.
Trait Implementations§
Source§impl Clone for AsyncAppTransaction
impl Clone for AsyncAppTransaction
impl Copy for AsyncAppTransaction
Auto Trait Implementations§
impl Freeze for AsyncAppTransaction
impl RefUnwindSafe for AsyncAppTransaction
impl Send for AsyncAppTransaction
impl Sync for AsyncAppTransaction
impl Unpin for AsyncAppTransaction
impl UnsafeUnpin for AsyncAppTransaction
impl UnwindSafe for AsyncAppTransaction
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