#[non_exhaustive]pub enum ProviderErrorKind {
Capacity,
RateLimited,
Auth,
NotFound,
Transient,
Fatal,
PlatformTimeout,
}Expand description
What kind of failure a provider call hit.
#[non_exhaustive]: match with a wildcard arm, new kinds may be added.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Capacity
No capacity (quota, region full, Fargate capacity). The gateway falls
back: another replica / region, or stop → cold start.
RateLimited
HTTP 429 or a provider throttling code. Retried with jittered backoff.
Auth
401/403 after the one refresh. Not retried.
NotFound
The resource does not exist (deleted out of band).
Transient
Network error, timeout, 5xx, 409 conflict. Retried with backoff.
Fatal
Anything else (bad request, invalid config). Not retried.
PlatformTimeout
The platform cut the request at its hard time limit and no preemption
was possible (Lambda, max_grace_secs = 0). Not retried: the gateway
records the run as failed{error_type: platform_timeout}.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderErrorKind
impl Clone for ProviderErrorKind
impl Copy for ProviderErrorKind
Source§impl Debug for ProviderErrorKind
impl Debug for ProviderErrorKind
Source§impl Display for ProviderErrorKind
impl Display for ProviderErrorKind
impl Eq for ProviderErrorKind
Source§impl Hash for ProviderErrorKind
impl Hash for ProviderErrorKind
Source§impl PartialEq for ProviderErrorKind
impl PartialEq for ProviderErrorKind
impl StructuralPartialEq for ProviderErrorKind
Auto Trait Implementations§
impl Forget for ProviderErrorKind
impl Freeze for ProviderErrorKind
impl Move for ProviderErrorKind
impl RefUnwindSafe for ProviderErrorKind
impl Send for ProviderErrorKind
impl Sync for ProviderErrorKind
impl Unpin for ProviderErrorKind
impl UnsafeUnpin for ProviderErrorKind
impl UnwindSafe for ProviderErrorKind
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.