pub struct AttributeSet { /* private fields */ }
Available on crate feature
metrics
only.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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 Freeze for AttributeSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace
only.