pub enum ThrottleReason {
Quota,
ServerInterval,
RateLimited,
}Expand description
Why a sync target is being held back beyond its policy cadence.
A service-imposed throttle has different origins but is always handled the same way by the engine: the next run may not start before a server-chosen instant. Distinguishing the reason is for logs and the status view.
Variants§
Quota
Remaining quota or cost the service reported in the body, not a header (GA4 property quotas, GitHub/Cloudflare GraphQL cost).
ServerInterval
A minimum poll interval the service named (e.g. GitHub’s X-Poll-Interval).
RateLimited
The service rejected a request as rate-limited and named a retry delay.
Trait Implementations§
Source§impl Clone for ThrottleReason
impl Clone for ThrottleReason
Source§fn clone(&self) -> ThrottleReason
fn clone(&self) -> ThrottleReason
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 ThrottleReason
Source§impl Debug for ThrottleReason
impl Debug for ThrottleReason
Source§impl<'de> Deserialize<'de> for ThrottleReason
impl<'de> Deserialize<'de> for ThrottleReason
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 ThrottleReason
Source§impl PartialEq for ThrottleReason
impl PartialEq for ThrottleReason
Source§impl Serialize for ThrottleReason
impl Serialize for ThrottleReason
impl StructuralPartialEq for ThrottleReason
Auto Trait Implementations§
impl Freeze for ThrottleReason
impl RefUnwindSafe for ThrottleReason
impl Send for ThrottleReason
impl Sync for ThrottleReason
impl Unpin for ThrottleReason
impl UnsafeUnpin for ThrottleReason
impl UnwindSafe for ThrottleReason
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