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
sourceimpl 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
sourceimpl Clone for EvictedHashMap
impl Clone for EvictedHashMap
sourcefn clone(&self) -> EvictedHashMap
fn clone(&self) -> EvictedHashMap
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EvictedHashMap
impl Debug for EvictedHashMap
sourceimpl<'a> IntoIterator for &'a EvictedHashMap
impl<'a> IntoIterator for &'a EvictedHashMap
type IntoIter = Iter<'a>
type IntoIter = Iter<'a>
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> <&'a EvictedHashMap as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a EvictedHashMap as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
sourceimpl IntoIterator for EvictedHashMap
impl IntoIterator for EvictedHashMap
type IntoIter = IntoIter
type IntoIter = IntoIter
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> <EvictedHashMap as IntoIterator>::IntoIter
fn into_iter(self) -> <EvictedHashMap as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
sourceimpl PartialEq<EvictedHashMap> for EvictedHashMap
impl PartialEq<EvictedHashMap> for EvictedHashMap
sourcefn 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 ==
. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more