pub struct RateLimitDecision { /* private fields */ }Expand description
Result of evaluating one request against a RateLimitStore.
Implementations§
Source§impl RateLimitDecision
Implements impl #impl_generics #name #ty_generics #where_clause.
impl RateLimitDecision
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_allowed(&self) -> bool
pub fn get_mut_allowed(&mut self) -> &mut bool
pub fn set_allowed(&mut self, val: bool) -> &mut Self
pub fn get_limit(&self) -> u64
pub fn get_mut_limit(&mut self) -> &mut u64
pub fn set_limit(&mut self, val: u64) -> &mut Self
pub fn get_remaining(&self) -> u64
pub fn get_mut_remaining(&mut self) -> &mut u64
pub fn set_remaining(&mut self, val: u64) -> &mut Self
pub fn get_reset_after_secs(&self) -> u64
pub fn get_mut_reset_after_secs(&mut self) -> &mut u64
pub fn set_reset_after_secs(&mut self, val: u64) -> &mut Self
pub fn get_retry_after_secs(&self) -> u64
pub fn get_mut_retry_after_secs(&mut self) -> &mut u64
pub fn set_retry_after_secs(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for RateLimitDecision
impl Clone for RateLimitDecision
impl Copy for RateLimitDecision
Source§impl Debug for RateLimitDecision
impl Debug for RateLimitDecision
impl Eq for RateLimitDecision
Source§impl PartialEq for RateLimitDecision
impl PartialEq for RateLimitDecision
impl StructuralPartialEq for RateLimitDecision
Auto Trait Implementations§
impl Forget for RateLimitDecision
impl Freeze for RateLimitDecision
impl Move for RateLimitDecision
impl RefUnwindSafe for RateLimitDecision
impl Send for RateLimitDecision
impl Sync for RateLimitDecision
impl Unpin for RateLimitDecision
impl UnsafeUnpin for RateLimitDecision
impl UnwindSafe for RateLimitDecision
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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.