#[non_exhaustive]pub enum AccountRotationReason {
RateLimited,
AuthenticationFailed,
RefreshFailed,
Unknown,
}Expand description
Why a daemon changed the OAuth account serving a provider request.
The unknown sink keeps durable journal rows readable when a newer producer introduces another reason.
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.
RateLimited
The provider returned a typed rate-limit response.
AuthenticationFailed
The provider rejected the active account after refresh was exhausted.
RefreshFailed
The active account could not refresh before the request was dispatched.
Unknown
A reason introduced by a newer producer.
Trait Implementations§
Source§impl Clone for AccountRotationReason
impl Clone for AccountRotationReason
Source§fn clone(&self) -> AccountRotationReason
fn clone(&self) -> AccountRotationReason
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 moreimpl Copy for AccountRotationReason
Source§impl Debug for AccountRotationReason
impl Debug for AccountRotationReason
Source§impl<'de> Deserialize<'de> for AccountRotationReason
impl<'de> Deserialize<'de> for AccountRotationReason
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 AccountRotationReason
Source§impl Hash for AccountRotationReason
impl Hash for AccountRotationReason
Source§impl PartialEq for AccountRotationReason
impl PartialEq for AccountRotationReason
Source§impl Serialize for AccountRotationReason
impl Serialize for AccountRotationReason
impl StructuralPartialEq for AccountRotationReason
Auto Trait Implementations§
impl Freeze for AccountRotationReason
impl RefUnwindSafe for AccountRotationReason
impl Send for AccountRotationReason
impl Sync for AccountRotationReason
impl Unpin for AccountRotationReason
impl UnsafeUnpin for AccountRotationReason
impl UnwindSafe for AccountRotationReason
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