Struct opentelemetry::sdk::trace::EvictedHashMap
source · pub struct EvictedHashMap { /* private fields */ }
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 for EvictedHashMap
impl PartialEq 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 ==
.impl StructuralPartialEq for EvictedHashMap
Auto Trait Implementations§
impl RefUnwindSafe for EvictedHashMap
impl Send for EvictedHashMap
impl Sync for EvictedHashMap
impl Unpin for EvictedHashMap
impl UnwindSafe for EvictedHashMap
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