pub struct RateLimitRejection { /* private fields */ }Expand description
Product-neutral rate-limit rejection metadata.
Implementations§
Source§impl RateLimitRejection
impl RateLimitRejection
Sourcepub const fn retry_after_seconds(self) -> u64
pub const fn retry_after_seconds(self) -> u64
Returns how many seconds clients should wait before retrying.
Trait Implementations§
Source§impl Clone for RateLimitRejection
impl Clone for RateLimitRejection
Source§fn clone(&self) -> RateLimitRejection
fn clone(&self) -> RateLimitRejection
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 moreSource§impl Debug for RateLimitRejection
impl Debug for RateLimitRejection
Source§impl PartialEq for RateLimitRejection
impl PartialEq for RateLimitRejection
Source§fn eq(&self, other: &RateLimitRejection) -> bool
fn eq(&self, other: &RateLimitRejection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RateLimitRejection
impl Eq for RateLimitRejection
impl StructuralPartialEq for RateLimitRejection
Auto Trait Implementations§
impl Freeze for RateLimitRejection
impl RefUnwindSafe for RateLimitRejection
impl Send for RateLimitRejection
impl Sync for RateLimitRejection
impl Unpin for RateLimitRejection
impl UnsafeUnpin for RateLimitRejection
impl UnwindSafe for RateLimitRejection
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.§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