pub struct RateLimitMetrics {
pub hits: u64,
pub proactive_throttles: u64,
pub wait_secs: u64,
pub rest_remaining: Option<u32>,
pub graphql_remaining: Option<u32>,
pub five_xx_hits: u64,
}Expand description
Snapshot of GitHub API rate-limit metrics.
Fields§
§hits: u64Total 403/429 rate-limit responses received (REST + GraphQL combined).
proactive_throttles: u64Times proactive throttling slept before sending a request.
wait_secs: u64Total seconds spent waiting due to proactive throttle or hard backoff.
rest_remaining: Option<u32>Current REST remaining quota (None if not yet observed).
graphql_remaining: Option<u32>Current GraphQL remaining quota (None if not yet observed).
five_xx_hits: u64Total 5xx server error responses received (REST + GraphQL combined).
Trait Implementations§
Source§impl Clone for RateLimitMetrics
impl Clone for RateLimitMetrics
Auto Trait Implementations§
impl Freeze for RateLimitMetrics
impl RefUnwindSafe for RateLimitMetrics
impl Send for RateLimitMetrics
impl Sync for RateLimitMetrics
impl Unpin for RateLimitMetrics
impl UnsafeUnpin for RateLimitMetrics
impl UnwindSafe for RateLimitMetrics
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more