Struct substrate_prometheus_endpoint::SourcedMetric [−][src]
A metric whose values are obtained from an existing source, instead of being independently recorded.
Implementations
impl<T: SourcedType, S: MetricSource> SourcedMetric<T, S>
[src]
pub fn new(opts: &Opts, source: S) -> Result<Self>
[src]
Creates a new metric that obtains its values from the given source.
Trait Implementations
impl<T: Clone, S: Clone> Clone for SourcedMetric<T, S>
[src]
fn clone(&self) -> SourcedMetric<T, S>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: SourcedType, S: MetricSource> Collector for SourcedMetric<T, S>
[src]
impl<T: Debug, S: Debug> Debug for SourcedMetric<T, S>
[src]
Auto Trait Implementations
impl<T, S> RefUnwindSafe for SourcedMetric<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
[src]
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for SourcedMetric<T, S> where
S: Send,
T: Send,
[src]
S: Send,
T: Send,
impl<T, S> Sync for SourcedMetric<T, S> where
S: Sync,
T: Sync,
[src]
S: Sync,
T: Sync,
impl<T, S> Unpin for SourcedMetric<T, S> where
S: Unpin,
T: Unpin,
[src]
S: Unpin,
T: Unpin,
impl<T, S> UnwindSafe for SourcedMetric<T, S> where
S: UnwindSafe,
T: UnwindSafe,
[src]
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,