pub struct BurstCapacity(pub u64);Expand description
The burst cap: the maximum the bucket may hold after a refill.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for BurstCapacity
impl Clone for BurstCapacity
Source§fn clone(&self) -> BurstCapacity
fn clone(&self) -> BurstCapacity
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 BurstCapacity
Source§impl Debug for BurstCapacity
impl Debug for BurstCapacity
Source§impl Display for BurstCapacity
impl Display for BurstCapacity
impl Eq for BurstCapacity
Source§impl From<BurstCapacity> for u64
impl From<BurstCapacity> for u64
Source§fn from(value: BurstCapacity) -> Self
fn from(value: BurstCapacity) -> Self
Converts to this type from the input type.
Source§impl From<u64> for BurstCapacity
impl From<u64> for BurstCapacity
Source§impl Hash for BurstCapacity
impl Hash for BurstCapacity
Source§impl Ord for BurstCapacity
impl Ord for BurstCapacity
Source§fn cmp(&self, other: &BurstCapacity) -> Ordering
fn cmp(&self, other: &BurstCapacity) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BurstCapacity
impl PartialEq for BurstCapacity
Source§impl PartialOrd for BurstCapacity
impl PartialOrd for BurstCapacity
impl StructuralPartialEq for BurstCapacity
Auto Trait Implementations§
impl Freeze for BurstCapacity
impl RefUnwindSafe for BurstCapacity
impl Send for BurstCapacity
impl Sync for BurstCapacity
impl Unpin for BurstCapacity
impl UnsafeUnpin for BurstCapacity
impl UnwindSafe for BurstCapacity
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