pub struct Builder<K: Eq + Hash + Clone, A: Algorithm, H: BuildHasher> { /* private fields */ }
Expand description

A constructor for keyed rate limiters.

Implementations

Sets the hashing method used for the map.

Sets the “weight” of each cell that is checked against the bucket.

Sets the initial number of keys that the map can hold before rehashing.

Constructs a keyed rate limiter with the given options.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.