pub struct RotationNumbers {
pub streak_count: u32,
pub streak_window: Duration,
pub no_reset_cooldown: Duration,
}Expand description
The rotation numbers from [gateway]: how many 429s fire the
streak, the window they are counted over, and the cooldown when no
reset time is known.
Fields§
§streak_count: u32§streak_window: Duration§no_reset_cooldown: DurationTrait Implementations§
Source§impl Clone for RotationNumbers
impl Clone for RotationNumbers
impl Copy for RotationNumbers
Source§impl Debug for RotationNumbers
impl Debug for RotationNumbers
Source§impl Default for RotationNumbers
impl Default for RotationNumbers
impl Eq for RotationNumbers
Source§impl PartialEq for RotationNumbers
impl PartialEq for RotationNumbers
impl StructuralPartialEq for RotationNumbers
Auto Trait Implementations§
impl Freeze for RotationNumbers
impl RefUnwindSafe for RotationNumbers
impl Send for RotationNumbers
impl Sync for RotationNumbers
impl Unpin for RotationNumbers
impl UnsafeUnpin for RotationNumbers
impl UnwindSafe for RotationNumbers
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.