pub struct Metadata<'a> { /* private fields */ }
Available on crate feature
metrics
only.Expand description
A container for the common elements for exported metric data that are shared
by the Accumulator
->Processor
and Processor
->Exporter
steps.
Implementations
sourceimpl<'a> Metadata<'a>
impl<'a> Metadata<'a>
sourcepub fn new(
descriptor: &'a Descriptor,
attributes: &'a AttributeSet
) -> Metadata<'a>
pub fn new(
descriptor: &'a Descriptor,
attributes: &'a AttributeSet
) -> Metadata<'a>
Create a new Metadata
instance.
sourcepub fn descriptor(&self) -> &Descriptor
pub fn descriptor(&self) -> &Descriptor
A description of the metric instrument being exported.
sourcepub fn attributes(&self) -> &AttributeSet
pub fn attributes(&self) -> &AttributeSet
The attributes associated with the instrument and the aggregated data.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Metadata<'a>
impl<'a> Send for Metadata<'a>
impl<'a> Sync for Metadata<'a>
impl<'a> Unpin for Metadata<'a>
impl<'a> UnwindSafe for Metadata<'a>
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