[−][src]Struct opentelemetry::api::metrics::value::MeasurementValue
MeasurementValue represents either an integer or a floating point value of a measurement. It
needs to be accompanied with a value kind or some source that provides a value kind describing
this measurement value.
Implementations
impl MeasurementValue[src]
pub fn into_i64(self) -> i64[src]
Convert the underlying AtomicU64 into a standard i64.
pub fn into_f64(self) -> f64[src]
Convert the underlying AtomicU64 into a standard f64.
Trait Implementations
impl Debug for MeasurementValue[src]
impl From<f64> for MeasurementValue[src]
fn from(value: f64) -> Self[src]
Convert f64 instances to MeasurementValue instances for use by
Instruments.
impl From<i64> for MeasurementValue[src]
Auto Trait Implementations
impl RefUnwindSafe for MeasurementValue
impl Send for MeasurementValue
impl Sync for MeasurementValue
impl Unpin for MeasurementValue
impl UnwindSafe for MeasurementValue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> FutureExt for T[src]
fn with_context(self, otel_cx: OpenTelemetryContext) -> WithContext<Self>[src]
fn with_current_context(self) -> WithContext<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,