Struct ratelimit_meter::algorithms::leaky_bucket::State
source · pub struct State(_);
Expand description
Represents the state of a single history of decisions.
Trait Implementations
sourceimpl RateLimitState<LeakyBucket> for State
impl RateLimitState<LeakyBucket> for State
sourcefn last_touched(&self, _params: &LeakyBucket) -> Instant
fn last_touched(&self, _params: &LeakyBucket) -> Instant
Returns the last time instant that the state had any relevance
(i.e. the rate limiter would behave exactly as if it was a new
rate limiter after this time). Read more
sourceimpl ShallowCopy for State
impl ShallowCopy for State
sourceunsafe fn shallow_copy(&mut self) -> Self
unsafe fn shallow_copy(&mut self) -> Self
Perform an aliasing copy of this value. Read more
impl Eq for State
impl StructuralEq for State
impl StructuralPartialEq for State
Auto Trait Implementations
impl !RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl !UnwindSafe for State
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more