Struct leaky_bucket_lite::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Expand description
Builder for a leaky bucket.
Implementations
The number of tokens that the bucket should start with.
If set to larger than max
at build time, will only saturate to max.
Set the max value for the builder.
Set the refill amount to use.
Construct a new leaky bucket.