pub struct StorefrontStream { /* private fields */ }Expand description
Wraps the StoreKit storefront update stream.
Implementations§
Source§impl StorefrontStream
impl StorefrontStream
Sourcepub const fn is_finished(&self) -> bool
pub const fn is_finished(&self) -> bool
Returns whether this StoreKit stream has reached the end of the sequence.
Sourcepub fn next(&mut self) -> Result<Option<Storefront>, StoreKitError>
pub fn next(&mut self) -> Result<Option<Storefront>, StoreKitError>
Waits for the next value from the StoreKit stream using the default timeout.
Sourcepub fn next_timeout(
&mut self,
timeout: Duration,
) -> Result<Option<Storefront>, StoreKitError>
pub fn next_timeout( &mut self, timeout: Duration, ) -> Result<Option<Storefront>, StoreKitError>
Waits for the next value from the StoreKit stream up to the supplied timeout.
Trait Implementations§
Source§impl Debug for StorefrontStream
impl Debug for StorefrontStream
Source§impl Drop for StorefrontStream
impl Drop for StorefrontStream
Auto Trait Implementations§
impl Freeze for StorefrontStream
impl RefUnwindSafe for StorefrontStream
impl !Send for StorefrontStream
impl !Sync for StorefrontStream
impl Unpin for StorefrontStream
impl UnsafeUnpin for StorefrontStream
impl UnwindSafe for StorefrontStream
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