pub struct BoundedCount {
pub count: u64,
pub cap: u64,
pub saturated: bool,
}Expand description
A count whose work and reported value are bounded by an explicit cap.
saturated distinguishes an exact count equal to cap from a population
larger than the cap. When it is true, count == cap is a lower bound.
Fields§
§count: u64§cap: u64§saturated: boolTrait Implementations§
Source§impl Clone for BoundedCount
impl Clone for BoundedCount
impl Copy for BoundedCount
Source§impl Debug for BoundedCount
impl Debug for BoundedCount
Source§impl<'de> Deserialize<'de> for BoundedCount
impl<'de> Deserialize<'de> for BoundedCount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BoundedCount
Source§impl PartialEq for BoundedCount
impl PartialEq for BoundedCount
Source§impl Serialize for BoundedCount
impl Serialize for BoundedCount
impl StructuralPartialEq for BoundedCount
Auto Trait Implementations§
impl Freeze for BoundedCount
impl RefUnwindSafe for BoundedCount
impl Send for BoundedCount
impl Sync for BoundedCount
impl Unpin for BoundedCount
impl UnsafeUnpin for BoundedCount
impl UnwindSafe for BoundedCount
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