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<'de, T> Deserialize<'de> for EvictedQueue<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for EvictedQueue<T>where T: Deserialize<'de>,
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<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>
source§fn eq(&self, other: &EvictedQueue<T>) -> bool
fn eq(&self, other: &EvictedQueue<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for EvictedQueue<T>where
T: Serialize,
impl<T> Serialize for EvictedQueue<T>where T: Serialize,
impl<T> StructuralPartialEq for EvictedQueue<T>
Auto Trait Implementations§
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