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