pub enum ErrorKind {
Show 27 variants
NetworkUnavailable,
Timeout,
RateLimited,
ServerError,
InvalidApiKey,
Forbidden,
NotFound,
InvalidRequest,
Conflict,
InvalidArgument,
InsufficientCredits,
FunnelTokenNotFound,
FunnelTokenExpired,
FunnelTokenAlreadyClaimed,
FunnelConfigUnsupported,
FunnelInvalid,
SubscriberUnresolvable,
PurchaseCanceled,
ProductNotAvailable,
AlreadyOwned,
PaymentDeclined,
StoreServiceUnavailable,
Ineligible,
ReceiptInvalid,
StoreProblem,
Storage,
Internal,
}Expand description
Normalized error category — the stable discriminant callers switch on.
Variants§
Timeout
RateLimited
ServerError
InvalidApiKey
Forbidden
NotFound
InvalidRequest
Conflict
InvalidArgument
InsufficientCredits
FunnelTokenNotFound
FunnelTokenExpired
FunnelTokenAlreadyClaimed
FunnelConfigUnsupported
A published funnel asks for a config format this build cannot draw. The funnel is not shown at all — a half-rendered onboarding is worse than none.
FunnelInvalid
A funnel with no pages, or one whose config failed to decode.
SubscriberUnresolvable
The server cannot resolve this device’s subscriber: its merge chain
is corrupt (backend SUBSCRIBER_UNRESOLVABLE, HTTP 409). Terminal and
not retryable — only the project owner repairing the data clears it.
Durable queues keep what they hold so it is delivered after repair.
PurchaseCanceled
ProductNotAvailable
AlreadyOwned
PaymentDeclined
Ineligible
ReceiptInvalid
StoreProblem
Storage
Internal
Implementations§
Source§impl ErrorKind
impl ErrorKind
pub fn is_retryable(&self) -> bool
Sourcepub fn default_message(&self) -> &'static str
pub fn default_message(&self) -> &'static str
Default English message used when the backend supplies none.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more