pub enum ExportKind {
Cumulative = 1,
Delta = 2,
}
Available on crate feature
metrics
only.Expand description
Indicates the kind of data exported by an exporter. These bits may be OR-d together when multiple exporters are in use.
Variants§
Cumulative = 1
Indicates that the Exporter
expects a cumulative Aggregation
.
Delta = 2
Indicates that the Exporter
expects a delta Aggregation
.
Implementations§
Source§impl ExportKind
impl ExportKind
Sourcepub fn includes(&self, has: &ExportKind) -> bool
pub fn includes(&self, has: &ExportKind) -> 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 an exporter of this kind requires memory to export correctly.
Trait Implementations§
Source§impl Clone for ExportKind
impl Clone for ExportKind
Source§fn clone(&self) -> ExportKind
fn clone(&self) -> ExportKind
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ExportKind
impl RefUnwindSafe for ExportKind
impl Send for ExportKind
impl Sync for ExportKind
impl Unpin for ExportKind
impl UnwindSafe for ExportKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace
only.