pub struct Report { /* private fields */ }Expand description
What a window counted, and the limit’s last reading.
Implementations§
Source§impl Report
impl Report
Sourcepub fn rate_limit(&self) -> Option<RateLimit>
pub fn rate_limit(&self) -> Option<RateLimit>
The limit as the last answer of the client’s life said, if any did: kept across windows.
Sourcepub fn line(&self, now: SystemTime) -> String
pub fn line(&self, now: SystemTime) -> String
The log line: GitHub requests in the last 1h 00m: runs 480 (120 fresh, 360 unchanged), … ; rate limit 4200 of 5000 left, resets in 31m 12s. A refused count shows only once it is not 0.
Trait Implementations§
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Forget for Report
impl Freeze for Report
impl Move for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.