pub struct AsyncAppTransaction;Available on crate feature
async only.Expand description
Async wrapper for AppTransaction.shared.
Returns a VerificationResult<AppTransaction> that can be verified
with .verified() to confirm the transaction’s authenticity.
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
Source§fn clone(&self) -> AsyncAppTransaction
fn clone(&self) -> AsyncAppTransaction
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 moreSource§impl Debug for AsyncAppTransaction
impl Debug 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