pub struct IntGauge {
pub name: &'static str,
/* private fields */
}
Expand description
An Integer Gauge Metric for Hyperlight
A gauge backed by an AtomicI64
Fields§
§name: &'static str
The name of the gauge
Implementations§
Trait Implementations§
Source§impl From<IntGauge> for HyperlightMetric
impl From<IntGauge> for HyperlightMetric
Source§impl<S: HyperlightMetricOps> GetHyperlightMetric<IntGauge> for S
impl<S: HyperlightMetricOps> GetHyperlightMetric<IntGauge> for S
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.
Auto Trait Implementations§
impl Freeze for IntGauge
impl RefUnwindSafe for IntGauge
impl Send for IntGauge
impl Sync for IntGauge
impl Unpin for IntGauge
impl UnwindSafe for IntGauge
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