[][src]Struct metrix::driver::DriverBuilder

pub struct DriverBuilder {
    pub name: Option<String>,
    pub title: Option<String>,
    pub description: Option<String>,
    pub processing_strategy: ProcessingStrategy,
    pub with_driver_metrics: bool,
}

A Builder for a TelemetryDriver

Fields

name: Option<String>

An optional name that will also group the metrics under the name

Default is None

title: Option<String>

A title to be added when a Snapshot with descriptions is created

Default is None

description: Option<String>

A description to be added when a Snapshot with descriptions is created

Default is None

processing_strategy: ProcessingStrategy

Sets the ProcessingStrategy dropped. The default is 60 seconds.

with_driver_metrics: bool

If true metrics for the TelemetryDriver will be added to the generated Snapshot

Default is true

Methods

impl DriverBuilder[src]

pub fn new<T: Into<String>>(name: T) -> DriverBuilder[src]

pub fn set_name<T: Into<String>>(self, name: T) -> Self[src]

pub fn set_title<T: Into<String>>(self, title: T) -> Self[src]

pub fn set_description<T: Into<String>>(self, description: T) -> Self[src]

pub fn set_processing_strategy(
    self,
    processing_strategy: ProcessingStrategy
) -> Self
[src]

pub fn set_driver_metrics(self, enabled: bool) -> Self[src]

pub fn build(self) -> TelemetryDriver[src]

Trait Implementations

impl Default for DriverBuilder[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, 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>,