Struct opentelemetry_api::attributes::AttributeSet
source · pub struct AttributeSet { /* private fields */ }
Expand description
An immutable set of distinct attributes.
Implementations§
source§impl AttributeSet
impl AttributeSet
sourcepub fn from_attributes<T: IntoIterator<Item = KeyValue>>(attributes: T) -> Self
pub fn from_attributes<T: IntoIterator<Item = KeyValue>>(attributes: T) -> Self
Construct a new attribute set form a distinct set of attributes
Trait Implementations§
source§impl Clone for AttributeSet
impl Clone for AttributeSet
source§fn clone(&self) -> AttributeSet
fn clone(&self) -> AttributeSet
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 AttributeSet
impl Debug for AttributeSet
source§impl Default for AttributeSet
impl Default for AttributeSet
source§fn default() -> AttributeSet
fn default() -> AttributeSet
Returns the “default value” for a type. Read more
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§
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