pub struct HeavyHitterEntry {
pub estimate: u64,
pub error: u64,
}Expand description
One entry in the monitored table.
Fields§
§estimate: u64Caller-facing frequency estimate. Overestimate bounded by
error.
error: u64Worst-case overestimate: true_count = estimate − error.
Zero for keys inserted before capacity was reached.
Trait Implementations§
Source§impl Clone for HeavyHitterEntry
impl Clone for HeavyHitterEntry
Source§fn clone(&self) -> HeavyHitterEntry
fn clone(&self) -> HeavyHitterEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeavyHitterEntry
impl Debug for HeavyHitterEntry
Source§impl<'de> Deserialize<'de> for HeavyHitterEntry
impl<'de> Deserialize<'de> for HeavyHitterEntry
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
Source§impl PartialEq for HeavyHitterEntry
impl PartialEq for HeavyHitterEntry
Source§impl Serialize for HeavyHitterEntry
impl Serialize for HeavyHitterEntry
impl Copy for HeavyHitterEntry
impl Eq for HeavyHitterEntry
impl StructuralPartialEq for HeavyHitterEntry
Auto Trait Implementations§
impl Freeze for HeavyHitterEntry
impl RefUnwindSafe for HeavyHitterEntry
impl Send for HeavyHitterEntry
impl Sync for HeavyHitterEntry
impl Unpin for HeavyHitterEntry
impl UnsafeUnpin for HeavyHitterEntry
impl UnwindSafe for HeavyHitterEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more