pub struct RateLimitMetrics {
pub hits: u64,
pub skipped_calls: u64,
pub rest_remaining: Option<u32>,
pub rest_reset_at: Option<u64>,
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).
skipped_calls: u64Calls skipped because the quota was low or a backoff was active.
rest_remaining: Option<u32>Current REST remaining quota (None if not yet observed).
rest_reset_at: Option<u64>UTC epoch second when the REST window resets (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