pub struct IntCounterVec {
pub name: &'static str,
/* private fields */
}
Expand description
An Integer Counter Vec for Hyperlight A 64-bit counter
Fields§
§name: &'static str
The name of the counter
Implementations§
Trait Implementations§
Source§impl Debug for IntCounterVec
impl Debug for IntCounterVec
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<S: HyperlightMetricOps> GetHyperlightMetric<IntCounterVec> for S
impl<S: HyperlightMetricOps> GetHyperlightMetric<IntCounterVec> for S
Source§fn metric(&self) -> Result<&IntCounterVec>
fn metric(&self) -> Result<&IntCounterVec>
Converts the metric into a HyperlightMetric
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.
Auto Trait Implementations§
impl Freeze for IntCounterVec
impl !RefUnwindSafe for IntCounterVec
impl Send for IntCounterVec
impl Sync for IntCounterVec
impl Unpin for IntCounterVec
impl !UnwindSafe for IntCounterVec
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