pub struct RateLimitContext { /* private fields */ }Expand description
Read-only rate-limit state carried in request extensions for allowed requests.
Implementations§
Trait Implementations§
Source§impl Clone for RateLimitContext
impl Clone for RateLimitContext
Source§fn clone(&self) -> RateLimitContext
fn clone(&self) -> RateLimitContext
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 RateLimitContext
impl Debug for RateLimitContext
Source§impl Default for RateLimitContext
impl Default for RateLimitContext
Source§fn default() -> RateLimitContext
fn default() -> RateLimitContext
Returns the “default value” for a type. Read more
impl Eq for RateLimitContext
Source§impl PartialEq for RateLimitContext
impl PartialEq for RateLimitContext
impl StructuralPartialEq for RateLimitContext
Auto Trait Implementations§
impl Freeze for RateLimitContext
impl RefUnwindSafe for RateLimitContext
impl Send for RateLimitContext
impl Sync for RateLimitContext
impl Unpin for RateLimitContext
impl UnsafeUnpin for RateLimitContext
impl UnwindSafe for RateLimitContext
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.