pub struct IntGaugeVec {
pub name: &'static str,
/* private fields */
}
Expand description
An Integer Gauge Metric for Hyperlight
A list of gauges, each backed by an AtomicI64
Fields§
§name: &'static str
The name of the gauge vec
Implementations§
Trait Implementations§
Source§impl Debug for IntGaugeVec
impl Debug for IntGaugeVec
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<S: HyperlightMetricOps> GetHyperlightMetric<IntGaugeVec> for S
impl<S: HyperlightMetricOps> GetHyperlightMetric<IntGaugeVec> for S
Source§fn metric(&self) -> Result<&IntGaugeVec>
fn metric(&self) -> Result<&IntGaugeVec>
Converts the metric into a HyperlightMetric
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 IntGaugeVec
impl !RefUnwindSafe for IntGaugeVec
impl Send for IntGaugeVec
impl Sync for IntGaugeVec
impl Unpin for IntGaugeVec
impl !UnwindSafe for IntGaugeVec
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