Struct ExponentialHistogramDataPoint

Source
pub struct ExponentialHistogramDataPoint {
Show 15 fields pub attributes: Vec<KeyValue>, pub start_time_unix_nano: u64, pub time_unix_nano: u64, pub count: u64, pub sum: f64, pub scale: i32, pub zero_count: u64, pub positive: Buckets, pub negative: Buckets, pub flags: u32, pub exemplars: Vec<Exemplar>, pub min: f64, pub max: f64, pub zero_threshold: f64, pub _has: _Hazzer,
}

Fields§

§attributes: Vec<KeyValue>§start_time_unix_nano: u64§time_unix_nano: u64§count: u64§sum: f64§scale: i32§zero_count: u64§positive: Buckets§negative: Buckets§flags: u32§exemplars: Vec<Exemplar>§min: f64§max: f64§zero_threshold: f64§_has: _Hazzer

Implementations§

Source§

impl ExponentialHistogramDataPoint

Source

pub fn sum(&self) -> Option<&f64>

Return a reference to sum as an Option

Source

pub fn mut_sum(&mut self) -> Option<&mut f64>

Return a mutable reference to sum as an Option

Source

pub fn set_sum(&mut self, value: f64)

Set the value and presence of sum

Source

pub fn clear_sum(&mut self)

Clear the presence of sum

Source

pub fn positive(&self) -> Option<&Buckets>

Return a reference to positive as an Option

Source

pub fn mut_positive(&mut self) -> Option<&mut Buckets>

Return a mutable reference to positive as an Option

Source

pub fn set_positive(&mut self, value: Buckets)

Set the value and presence of positive

Source

pub fn clear_positive(&mut self)

Clear the presence of positive

Source

pub fn negative(&self) -> Option<&Buckets>

Return a reference to negative as an Option

Source

pub fn mut_negative(&mut self) -> Option<&mut Buckets>

Return a mutable reference to negative as an Option

Source

pub fn set_negative(&mut self, value: Buckets)

Set the value and presence of negative

Source

pub fn clear_negative(&mut self)

Clear the presence of negative

Source

pub fn min(&self) -> Option<&f64>

Return a reference to min as an Option

Source

pub fn mut_min(&mut self) -> Option<&mut f64>

Return a mutable reference to min as an Option

Source

pub fn set_min(&mut self, value: f64)

Set the value and presence of min

Source

pub fn clear_min(&mut self)

Clear the presence of min

Source

pub fn max(&self) -> Option<&f64>

Return a reference to max as an Option

Source

pub fn mut_max(&mut self) -> Option<&mut f64>

Return a mutable reference to max as an Option

Source

pub fn set_max(&mut self, value: f64)

Set the value and presence of max

Source

pub fn clear_max(&mut self)

Clear the presence of max

Trait Implementations§

Source§

impl Clone for ExponentialHistogramDataPoint

Source§

fn clone(&self) -> ExponentialHistogramDataPoint

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExponentialHistogramDataPoint

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ExponentialHistogramDataPoint

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl MessageDecode for ExponentialHistogramDataPoint

Source§

fn decode<IMPL_MICROPB_READ: PbRead>( &mut self, decoder: &mut PbDecoder<IMPL_MICROPB_READ>, len: usize, ) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>

Decode an instance of the message from the decoder and merge it into self. Read more
Source§

fn decode_len_delimited<R>( &mut self, decoder: &mut PbDecoder<R>, ) -> Result<(), DecodeError<<R as PbRead>::Error>>
where R: PbRead,

Decode an instance of the message from the decoder as a length-delimited record, starting with a length prefix.
Source§

impl MessageEncode for ExponentialHistogramDataPoint

Source§

fn encode<IMPL_MICROPB_WRITE: PbWrite>( &self, encoder: &mut PbEncoder<IMPL_MICROPB_WRITE>, ) -> Result<(), IMPL_MICROPB_WRITE::Error>

Encode this message using the encoder.
Source§

fn compute_size(&self) -> usize

Compute the size of this message on the wire.
Source§

fn encode_len_delimited<W>( &self, encoder: &mut PbEncoder<W>, ) -> Result<(), <W as PbWrite>::Error>
where W: PbWrite,

Encode this message as a length-delimited record, starting with a length prefix.
Source§

impl PartialEq for ExponentialHistogramDataPoint

Source§

fn eq(&self, other: &ExponentialHistogramDataPoint) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ExponentialHistogramDataPoint

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.