pub struct AsyncProducts;Available on crate feature
async only.Expand description
Async wrapper for Product.products(for:).
Fetches products from the App Store for a set of product identifiers.
§Notes
On macOS Sandbox / Xcode previews you must configure a StoreKit Configuration File in your scheme for products to be returned.
Implementations§
Source§impl AsyncProducts
impl AsyncProducts
Sourcepub fn fetch<I, S>(identifiers: I) -> Result<ProductsFuture, StoreKitError>
pub fn fetch<I, S>(identifiers: I) -> Result<ProductsFuture, StoreKitError>
Asynchronously fetch products for the given identifiers.
Equivalent to Product.products(for: identifiers) in Swift.
§Errors
Returns an error if the App Store request fails or the product identifiers cannot be encoded.
Trait Implementations§
Source§impl Clone for AsyncProducts
impl Clone for AsyncProducts
Source§fn clone(&self) -> AsyncProducts
fn clone(&self) -> AsyncProducts
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 AsyncProducts
impl Debug for AsyncProducts
impl Copy for AsyncProducts
Auto Trait Implementations§
impl Freeze for AsyncProducts
impl RefUnwindSafe for AsyncProducts
impl Send for AsyncProducts
impl Sync for AsyncProducts
impl Unpin for AsyncProducts
impl UnsafeUnpin for AsyncProducts
impl UnwindSafe for AsyncProducts
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