pub enum StoreKitError {
InvalidArgument(String),
TimedOut(String),
NotSupported(String),
Framework(StoreKitFrameworkError),
Verification(VerificationFailure),
Unknown(String),
}Expand description
Top-level error returned by this crate for StoreKit failures.
Variants§
InvalidArgument(String)
Represents the InvalidArgument StoreKit case.
TimedOut(String)
Represents the TimedOut StoreKit case.
NotSupported(String)
Represents the NotSupported StoreKit case.
Framework(StoreKitFrameworkError)
Represents the Framework StoreKit case.
Verification(VerificationFailure)
Represents the Verification StoreKit case.
Unknown(String)
Preserves an unrecognized StoreKit case.
Implementations§
Source§impl StoreKitError
impl StoreKitError
Sourcepub fn typed(&self) -> Option<TypedStoreKitError>
pub fn typed(&self) -> Option<TypedStoreKitError>
Returns the typed StoreKit framework error when one can be decoded.
Sourcepub fn storekit_api_error(&self) -> Option<StoreKitApiError>
pub fn storekit_api_error(&self) -> Option<StoreKitApiError>
Returns the decoded StoreKit.StoreKitError, if available.
Sourcepub fn product_purchase_error(&self) -> Option<ProductPurchaseError>
pub fn product_purchase_error(&self) -> Option<ProductPurchaseError>
Returns the decoded StoreKit.Product.PurchaseError, if available.
Sourcepub fn refund_request_error(&self) -> Option<RefundRequestError>
pub fn refund_request_error(&self) -> Option<RefundRequestError>
Returns the decoded StoreKit.Transaction.RefundRequestError, if available.
Sourcepub fn invalid_request_error(&self) -> Option<InvalidRequestError>
pub fn invalid_request_error(&self) -> Option<InvalidRequestError>
Returns the decoded StoreKit.InvalidRequestError, if available.
Trait Implementations§
Source§impl Clone for StoreKitError
impl Clone for StoreKitError
Source§fn clone(&self) -> StoreKitError
fn clone(&self) -> StoreKitError
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 StoreKitError
impl Debug for StoreKitError
Source§impl Display for StoreKitError
impl Display for StoreKitError
Source§impl Error for StoreKitError
impl Error for StoreKitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for StoreKitError
impl RefUnwindSafe for StoreKitError
impl Send for StoreKitError
impl Sync for StoreKitError
impl Unpin for StoreKitError
impl UnsafeUnpin for StoreKitError
impl UnwindSafe for StoreKitError
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