pub enum UsageFetchStatus {
RateLimited,
Expired,
Unauthorized,
NetworkFailed,
Other,
}Expand description
Classification of the latest usage-poll attempt outcome for an
account. Feeds unusable_reason’s probe-blocked branch and the
backoff schedule.
Variants§
RateLimited
Anthropic returned HTTP 429 - too many concurrent polls
against the OAuth /api/oauth/usage endpoint (typical when
multiple forge instances poll from the same machine).
Expired
The account’s credential is dead or absent (expired, or no token at all). Repair is minting the setup token on the account block plus a restart.
API returned 401/403 - token rejected (may be revoked).
NetworkFailed
Network failure reaching the API (DNS, TLS, timeout, …).
Other
Decode / unknown-HTTP-status fallthrough, kept distinct so an
unmapped cause names itself instead of wearing a known bucket.
Like NetworkFailed it does not block the account.
Trait Implementations§
Source§impl Clone for UsageFetchStatus
impl Clone for UsageFetchStatus
impl Copy for UsageFetchStatus
Source§impl Debug for UsageFetchStatus
impl Debug for UsageFetchStatus
Source§impl<'de> Deserialize<'de> for UsageFetchStatus
impl<'de> Deserialize<'de> for UsageFetchStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UsageFetchStatus
Source§impl PartialEq for UsageFetchStatus
impl PartialEq for UsageFetchStatus
Source§impl Serialize for UsageFetchStatus
impl Serialize for UsageFetchStatus
impl StructuralPartialEq for UsageFetchStatus
Auto Trait Implementations§
impl Freeze for UsageFetchStatus
impl RefUnwindSafe for UsageFetchStatus
impl Send for UsageFetchStatus
impl Sync for UsageFetchStatus
impl Unpin for UsageFetchStatus
impl UnsafeUnpin for UsageFetchStatus
impl UnwindSafe for UsageFetchStatus
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
§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
Compare self to
key and return true if they are equal.