pub struct PurchaseIntentStream { /* private fields */ }Expand description
Wraps the StoreKit purchase intent stream.
Implementations§
Source§impl PurchaseIntentStream
impl PurchaseIntentStream
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<PurchaseIntent>, StoreKitError>
pub fn next(&mut self) -> Result<Option<PurchaseIntent>, StoreKitError>
Waits for the next value from the StoreKit stream using the default timeout.
Sourcepub fn next_timeout(
&mut self,
timeout: Duration,
) -> Result<Option<PurchaseIntent>, StoreKitError>
pub fn next_timeout( &mut self, timeout: Duration, ) -> Result<Option<PurchaseIntent>, StoreKitError>
Waits for the next value from the StoreKit stream up to the supplied timeout.
Trait Implementations§
Source§impl Debug for PurchaseIntentStream
impl Debug for PurchaseIntentStream
Source§impl Drop for PurchaseIntentStream
impl Drop for PurchaseIntentStream
Auto Trait Implementations§
impl Freeze for PurchaseIntentStream
impl RefUnwindSafe for PurchaseIntentStream
impl !Send for PurchaseIntentStream
impl !Sync for PurchaseIntentStream
impl Unpin for PurchaseIntentStream
impl UnsafeUnpin for PurchaseIntentStream
impl UnwindSafe for PurchaseIntentStream
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