pub struct RateSnapshot { /* private fields */ }Expand description
Information about the rate-limiting state used to reach a decision.
Implementations§
Source§impl RateSnapshot
impl RateSnapshot
Sourcepub fn extend_response<Ext>(&self, res: &mut Response<Ext>)
pub fn extend_response<Ext>(&self, res: &mut Response<Ext>)
extend response headers with headers
Header: x-ratelimit-limit: <num>
Header: x-ratelimit-remaining: <num>
Trait Implementations§
Source§impl Clone for RateSnapshot
impl Clone for RateSnapshot
Source§fn clone(&self) -> RateSnapshot
fn clone(&self) -> RateSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 RateSnapshot
impl Debug for RateSnapshot
Source§impl PartialEq for RateSnapshot
impl PartialEq for RateSnapshot
impl Eq for RateSnapshot
impl StructuralPartialEq for RateSnapshot
Auto Trait Implementations§
impl Freeze for RateSnapshot
impl RefUnwindSafe for RateSnapshot
impl Send for RateSnapshot
impl Sync for RateSnapshot
impl Unpin for RateSnapshot
impl UnwindSafe for RateSnapshot
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