pub struct FixedLimit { /* private fields */ }Expand description
fixed bucket
let b = FixedBucket::new(600, 10).bucket(90, 10.0) b.allow(unique value) // booleanImplementations§
Trait Implementations§
Source§impl Clone for FixedLimit
impl Clone for FixedLimit
Source§fn clone(&self) -> FixedLimit
fn clone(&self) -> FixedLimit
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 moreAuto Trait Implementations§
impl Freeze for FixedLimit
impl RefUnwindSafe for FixedLimit
impl Send for FixedLimit
impl Sync for FixedLimit
impl Unpin for FixedLimit
impl UnsafeUnpin for FixedLimit
impl UnwindSafe for FixedLimit
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