pub enum HyperlightMetric {
IntCounter(IntCounter),
IntCounterVec(IntCounterVec),
IntGauge(IntGauge),
IntGaugeVec(IntGaugeVec),
Histogram(Histogram),
HistogramVec(HistogramVec),
}
Expand description
An instance of a Hyperlight metric
Variants§
IntCounter(IntCounter)
A counter that can only be incremented
IntCounterVec(IntCounterVec)
A counter that can only be incremented and has labels
IntGauge(IntGauge)
A gauge that can be incremented, decremented, set, added to, and subtracted from
IntGaugeVec(IntGaugeVec)
A gauge that can be incremented, decremented, set, added to, and subtracted from and has labels
Histogram(Histogram)
A histogram that can observe values for activities
HistogramVec(HistogramVec)
A histogram that can observe values for activities and has labels
Trait Implementations§
Source§impl Debug for HyperlightMetric
impl Debug for HyperlightMetric
Source§impl From<Histogram> for HyperlightMetric
impl From<Histogram> for HyperlightMetric
Source§impl From<HistogramVec> for HyperlightMetric
impl From<HistogramVec> for HyperlightMetric
Source§fn from(histogram_vec: HistogramVec) -> Self
fn from(histogram_vec: HistogramVec) -> Self
Converts to this type from the input type.
Source§impl From<IntCounter> for HyperlightMetric
impl From<IntCounter> for HyperlightMetric
Source§fn from(counter: IntCounter) -> Self
fn from(counter: IntCounter) -> Self
Converts to this type from the input type.
Source§impl From<IntCounterVec> for HyperlightMetric
impl From<IntCounterVec> for HyperlightMetric
Source§fn from(counter: IntCounterVec) -> Self
fn from(counter: IntCounterVec) -> Self
Converts to this type from the input type.
Source§impl From<IntGauge> for HyperlightMetric
impl From<IntGauge> for HyperlightMetric
Source§impl From<IntGaugeVec> for HyperlightMetric
impl From<IntGaugeVec> for HyperlightMetric
Source§fn from(gauge: IntGaugeVec) -> Self
fn from(gauge: IntGaugeVec) -> Self
Converts to this type from the input type.
Source§impl<'a> TryFrom<&'a HyperlightMetric> for &'a Histogram
impl<'a> TryFrom<&'a HyperlightMetric> for &'a Histogram
Source§type Error = HyperlightError
type Error = HyperlightError
The type returned in the event of a conversion error.
Source§fn try_from(metric: &'a HyperlightMetric) -> Result<Self>
fn try_from(metric: &'a HyperlightMetric) -> Result<Self>
Performs the conversion.
Source§impl<'a> TryFrom<&'a HyperlightMetric> for &'a HistogramVec
impl<'a> TryFrom<&'a HyperlightMetric> for &'a HistogramVec
Source§type Error = HyperlightError
type Error = HyperlightError
The type returned in the event of a conversion error.
Source§fn try_from(metric: &'a HyperlightMetric) -> Result<Self>
fn try_from(metric: &'a HyperlightMetric) -> Result<Self>
Performs the conversion.
Source§impl<'a> TryFrom<&'a HyperlightMetric> for &'a IntCounter
impl<'a> TryFrom<&'a HyperlightMetric> for &'a IntCounter
Source§type Error = HyperlightError
type Error = HyperlightError
The type returned in the event of a conversion error.
Source§fn try_from(metric: &'a HyperlightMetric) -> Result<Self>
fn try_from(metric: &'a HyperlightMetric) -> Result<Self>
Performs the conversion.
Source§impl<'a> TryFrom<&'a HyperlightMetric> for &'a IntCounterVec
impl<'a> TryFrom<&'a HyperlightMetric> for &'a IntCounterVec
Source§type Error = HyperlightError
type Error = HyperlightError
The type returned in the event of a conversion error.
Source§fn try_from(metric: &'a HyperlightMetric) -> Result<Self>
fn try_from(metric: &'a HyperlightMetric) -> Result<Self>
Performs the conversion.
Source§impl<'a> TryFrom<&'a HyperlightMetric> for &'a IntGauge
impl<'a> TryFrom<&'a HyperlightMetric> for &'a IntGauge
Source§type Error = HyperlightError
type Error = HyperlightError
The type returned in the event of a conversion error.
Source§fn try_from(metric: &'a HyperlightMetric) -> Result<Self>
fn try_from(metric: &'a HyperlightMetric) -> Result<Self>
Performs the conversion.
Source§impl<'a> TryFrom<&'a HyperlightMetric> for &'a IntGaugeVec
impl<'a> TryFrom<&'a HyperlightMetric> for &'a IntGaugeVec
Source§type Error = HyperlightError
type Error = HyperlightError
The type returned in the event of a conversion error.
Source§fn try_from(metric: &'a HyperlightMetric) -> Result<Self>
fn try_from(metric: &'a HyperlightMetric) -> Result<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for HyperlightMetric
impl !RefUnwindSafe for HyperlightMetric
impl Send for HyperlightMetric
impl Sync for HyperlightMetric
impl Unpin for HyperlightMetric
impl !UnwindSafe for HyperlightMetric
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