pub struct BucketSpec {
pub fill_per_sec: f64,
pub capacity: f64,
}Expand description
Per-bucket configuration.
Fields§
§fill_per_sec: f64Tokens added per second.
capacity: f64Maximum tokens the bucket can hold (burst allowance).
Trait Implementations§
Source§impl Clone for BucketSpec
impl Clone for BucketSpec
Source§fn clone(&self) -> BucketSpec
fn clone(&self) -> BucketSpec
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 moreimpl Copy for BucketSpec
Auto Trait Implementations§
impl Freeze for BucketSpec
impl RefUnwindSafe for BucketSpec
impl Send for BucketSpec
impl Sync for BucketSpec
impl Unpin for BucketSpec
impl UnsafeUnpin for BucketSpec
impl UnwindSafe for BucketSpec
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