Enum opentelemetry::sdk::export::metrics::aggregation::Temporality
source · [−]#[non_exhaustive]
pub enum Temporality {
Cumulative,
Delta,
}
Available on crate feature
metrics
only.Expand description
Temporality indicates the temporal aggregation exported by an exporter. These bits may be OR-d together when multiple exporters are in use.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cumulative
Indicates that an Exporter expects a Cumulative Aggregation.
Delta
Indicates that an Exporter expects a Delta Aggregation.
Implementations
sourceimpl Temporality
impl Temporality
sourcepub fn includes(&self, other: &Temporality) -> bool
pub fn includes(&self, other: &Temporality) -> bool
Tests whether kind
includes a specific kind of exporter.
sourcepub fn memory_required(&self, kind: &InstrumentKind) -> bool
pub fn memory_required(&self, kind: &InstrumentKind) -> bool
Returns whether a temporality of this kind requires memory to export correctly.
Trait Implementations
sourceimpl Clone for Temporality
impl Clone for Temporality
sourcefn clone(&self) -> Temporality
fn clone(&self) -> Temporality
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 Temporality
impl Debug for Temporality
sourceimpl PartialEq<Temporality> for Temporality
impl PartialEq<Temporality> for Temporality
sourcefn eq(&self, other: &Temporality) -> bool
fn eq(&self, other: &Temporality) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for Temporality
impl Eq for Temporality
impl StructuralEq for Temporality
impl StructuralPartialEq for Temporality
Auto Trait Implementations
impl RefUnwindSafe for Temporality
impl Send for Temporality
impl Sync for Temporality
impl Unpin for Temporality
impl UnwindSafe for Temporality
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.