Struct opentelemetry::sdk::trace::EvictedHashMap
source · pub struct EvictedHashMap { /* private fields */ }
Available on crate feature
trace
only.Expand description
A hash map with a capped number of attributes that retains the most recently set entries.
Implementations§
source§impl EvictedHashMap
impl EvictedHashMap
sourcepub fn new(max_len: u32, capacity: usize) -> EvictedHashMap
pub fn new(max_len: u32, capacity: usize) -> EvictedHashMap
Create a new EvictedHashMap
with a given max length and capacity.
sourcepub fn dropped_count(&self) -> u32
pub fn dropped_count(&self) -> u32
Returns the dropped attribute count
Trait Implementations§
source§impl Clone for EvictedHashMap
impl Clone for EvictedHashMap
source§fn clone(&self) -> EvictedHashMap
fn clone(&self) -> EvictedHashMap
Returns a copy 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 EvictedHashMap
impl Debug for EvictedHashMap
source§impl<'a> IntoIterator for &'a EvictedHashMap
impl<'a> IntoIterator for &'a EvictedHashMap
source§impl IntoIterator for EvictedHashMap
impl IntoIterator for EvictedHashMap
source§impl PartialEq<EvictedHashMap> for EvictedHashMap
impl PartialEq<EvictedHashMap> for EvictedHashMap
source§fn eq(&self, other: &EvictedHashMap) -> bool
fn eq(&self, other: &EvictedHashMap) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.