pub struct CombinedMetricExtractionConfig<'a> { /* private fields */ }
Expand description
Combined view of global and project-specific metrics extraction configs.
Implementations§
source§impl<'a> CombinedMetricExtractionConfig<'a>
impl<'a> CombinedMetricExtractionConfig<'a>
sourcepub fn new(
global: &'a MetricExtractionGroups,
project: &'a MetricExtractionConfig,
) -> Self
pub fn new( global: &'a MetricExtractionGroups, project: &'a MetricExtractionConfig, ) -> Self
Creates a new combined view from two references.
sourcepub fn metrics(&self) -> impl Iterator<Item = &MetricSpec>
pub fn metrics(&self) -> impl Iterator<Item = &MetricSpec>
Returns an iterator of metric specs.
Returns an iterator of tag mappings.
Trait Implementations§
source§impl<'a> Clone for CombinedMetricExtractionConfig<'a>
impl<'a> Clone for CombinedMetricExtractionConfig<'a>
source§fn clone(&self) -> CombinedMetricExtractionConfig<'a>
fn clone(&self) -> CombinedMetricExtractionConfig<'a>
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<'a> Debug for CombinedMetricExtractionConfig<'a>
impl<'a> Debug for CombinedMetricExtractionConfig<'a>
source§impl<'a> From<&'a MetricExtractionConfig> for CombinedMetricExtractionConfig<'a>
impl<'a> From<&'a MetricExtractionConfig> for CombinedMetricExtractionConfig<'a>
source§fn from(value: &'a MetricExtractionConfig) -> Self
fn from(value: &'a MetricExtractionConfig) -> Self
Creates a combined config with an empty global component. Used in tests.
impl<'a> Copy for CombinedMetricExtractionConfig<'a>
Auto Trait Implementations§
impl<'a> Freeze for CombinedMetricExtractionConfig<'a>
impl<'a> RefUnwindSafe for CombinedMetricExtractionConfig<'a>
impl<'a> Send for CombinedMetricExtractionConfig<'a>
impl<'a> Sync for CombinedMetricExtractionConfig<'a>
impl<'a> Unpin for CombinedMetricExtractionConfig<'a>
impl<'a> UnwindSafe for CombinedMetricExtractionConfig<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)