Struct opentelemetry_sdk::trace::EvictedQueue
source · pub struct EvictedQueue<T> { /* private fields */ }
Expand description
This queue maintains an ordered list of elements, and a count of dropped elements. Elements are removed from the queue in a first in first out fashion.
Implementations§
source§impl<T> EvictedQueue<T>
impl<T> EvictedQueue<T>
sourcepub fn append_vec(&mut self, other: &mut Vec<T>)
pub fn append_vec(&mut self, other: &mut Vec<T>)
Moves all the elements of other into self, leaving other empty.
sourcepub fn dropped_count(&self) -> u32
pub fn dropped_count(&self) -> u32
Count of dropped attributes
Trait Implementations§
source§impl<T: Clone> Clone for EvictedQueue<T>
impl<T: Clone> Clone for EvictedQueue<T>
source§fn clone(&self) -> EvictedQueue<T>
fn clone(&self) -> EvictedQueue<T>
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<T: Debug> Debug for EvictedQueue<T>
impl<T: Debug> Debug for EvictedQueue<T>
source§impl<T> Extend<T> for EvictedQueue<T>
impl<T> Extend<T> for EvictedQueue<T>
source§fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl<T> IntoIterator for EvictedQueue<T>
impl<T> IntoIterator for EvictedQueue<T>
source§impl<T: PartialEq> PartialEq for EvictedQueue<T>
impl<T: PartialEq> PartialEq for EvictedQueue<T>
impl<T: Eq> Eq for EvictedQueue<T>
impl<T> StructuralPartialEq for EvictedQueue<T>
Auto Trait Implementations§
impl<T> Freeze for EvictedQueue<T>
impl<T> RefUnwindSafe for EvictedQueue<T>where
T: RefUnwindSafe,
impl<T> Send for EvictedQueue<T>where
T: Send,
impl<T> Sync for EvictedQueue<T>where
T: Sync,
impl<T> Unpin for EvictedQueue<T>where
T: Unpin,
impl<T> UnwindSafe for EvictedQueue<T>where
T: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.