Struct opentelemetry::attributes::AttributeSet
source · [−]pub struct AttributeSet { /* private fields */ }
Available on crate feature
metrics
only.Expand description
An immutable set of distinct attributes.
Implementations
sourceimpl AttributeSet
impl AttributeSet
sourcepub fn from_attributes<T>(attributes: T) -> AttributeSetwhere
T: IntoIterator<Item = KeyValue>,
pub fn from_attributes<T>(attributes: T) -> AttributeSetwhere
T: IntoIterator<Item = KeyValue>,
Construct a new attribute set form a distinct set of attributes
Trait Implementations
sourceimpl Clone for AttributeSet
impl Clone for AttributeSet
sourcefn clone(&self) -> AttributeSet
fn clone(&self) -> AttributeSet
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 AttributeSet
impl Debug for AttributeSet
sourceimpl Default for AttributeSet
impl Default for AttributeSet
sourcefn default() -> AttributeSet
fn default() -> AttributeSet
Returns the “default value” for a type. Read more
sourceimpl<'a> IntoIterator for &'a AttributeSet
impl<'a> IntoIterator for &'a AttributeSet
Auto Trait Implementations
impl RefUnwindSafe for AttributeSet
impl Send for AttributeSet
impl Sync for AttributeSet
impl Unpin for AttributeSet
impl UnwindSafe for AttributeSet
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