pub struct AsyncAppStore;Available on crate feature
async only.Expand description
Async wrapper for AppStore UI APIs.
§Notes
AsyncAppStore::request_reviewrequires macOS 13.0+ and anNSViewController-backed window.AsyncAppStore::show_manage_subscriptionsis scene-based (SwiftUI) and always returns aNotSupportederror on macOS. Consider opening theitms-apps://URL directly forAppKitapps.
Implementations§
Source§impl AsyncAppStore
impl AsyncAppStore
Sourcepub fn request_review() -> RequestReviewFuture ⓘ
pub fn request_review() -> RequestReviewFuture ⓘ
Asynchronously prompt the user for an App Store review.
Equivalent to AppStore.requestReview(in:) in Swift.
§Errors
Returns a NotSupported error when:
- Running on macOS < 13.0.
- No
NSViewController-backed key window is available.
Sourcepub fn show_manage_subscriptions() -> ShowManageSubscriptionsFuture ⓘ
pub fn show_manage_subscriptions() -> ShowManageSubscriptionsFuture ⓘ
Asynchronously show the “Manage Subscriptions” sheet.
Equivalent to AppStore.showManageSubscriptions(in:) in Swift.
§Errors
Always returns a NotSupported error on macOS because
showManageSubscriptions(in:) is scene-based and unavailable in
the macOS StoreKit SDK.
Trait Implementations§
Source§impl Clone for AsyncAppStore
impl Clone for AsyncAppStore
Source§fn clone(&self) -> AsyncAppStore
fn clone(&self) -> AsyncAppStore
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 AsyncAppStore
impl Debug for AsyncAppStore
Source§impl Default for AsyncAppStore
impl Default for AsyncAppStore
Source§fn default() -> AsyncAppStore
fn default() -> AsyncAppStore
Returns the “default value” for a type. Read more
impl Copy for AsyncAppStore
Auto Trait Implementations§
impl Freeze for AsyncAppStore
impl RefUnwindSafe for AsyncAppStore
impl Send for AsyncAppStore
impl Sync for AsyncAppStore
impl Unpin for AsyncAppStore
impl UnsafeUnpin for AsyncAppStore
impl UnwindSafe for AsyncAppStore
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