[][src]Struct nakadion::instrumentation::Instrumentation

pub struct Instrumentation { /* fields omitted */ }

Used by the consumer to notify on measurable state changes

Implementations

impl Instrumentation[src]

pub fn off() -> Self[src]

Do not collect any data.

This is the default.

pub fn new<I>(instruments: I, detail: MetricsDetailLevel) -> Self where
    I: Instruments + Send + Sync + 'static, 
[src]

Use the given implementation of Instruments

pub fn metrix(metrix: Metrix, detail: MetricsDetailLevel) -> Self[src]

pub fn metrix_mounted<A: AggregatesProcessors>(
    config: &MetrixConfig,
    detail: MetricsDetailLevel,
    processor: &mut A
) -> Self
[src]

pub fn metrix_mountable(
    config: &MetrixConfig,
    detail: MetricsDetailLevel,
    mountable_name: Option<&str>
) -> (Self, ProcessorMount)
[src]

Trait Implementations

impl Clone for Instrumentation[src]

impl Debug for Instrumentation[src]

impl Default for Instrumentation[src]

impl Instruments for Instrumentation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,