Enum cadence::ext::MetricValue
source · [−]Expand description
Holder for primitive metric values that knows how to display itself
This struct is internal to how various types that are valid for each type
of metric (e.g. types for which ToCounterValue
, ToTimerValue
, etc) are
implemented but is exposed for documentation purposes and advanced use cases.
Typical use of Cadence shouldn’t require interacting with this type.
Variants
Signed(i64)
Unsigned(u64)
Float(f64)
Trait Implementations
sourceimpl Clone for MetricValue
impl Clone for MetricValue
sourcefn clone(&self) -> MetricValue
fn clone(&self) -> MetricValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MetricValue
impl Debug for MetricValue
sourceimpl Display for MetricValue
impl Display for MetricValue
impl Copy for MetricValue
Auto Trait Implementations
impl RefUnwindSafe for MetricValue
impl Send for MetricValue
impl Sync for MetricValue
impl Unpin for MetricValue
impl UnwindSafe for MetricValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more