Struct ratelimit_meter::Allower
[−]
[src]
pub struct Allower {}
The most naive implementation of a rate-limiter ever: Always allows every cell through.
Trait Implementations
impl Copy for Allower
[src]
impl Clone for Allower
[src]
fn clone(&self) -> Allower
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Decider for Allower
[src]
type T = ()
Allower never returns a negative answer, so negative answers don't carry information.
fn test_and_update(&mut self, _t0: Instant) -> Decision<()>
[src]
Allows the cell through unconditionally.
fn build_with(_l: &Limiter) -> Result<Self>
[src]
Builds the most useless rate-limiter in existence.
fn check(&mut self) -> Decision<Self::T>
[src]
Tests if a single cell can be accomodated now. See test_and_update
.