[]Struct nakadion::publisher::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

Implementations

impl DriverBuilder

pub fn new<T>(name: T) -> DriverBuilder where
    T: Into<String>, 

pub fn set_name<T>(self, name: T) -> DriverBuilder where
    T: Into<String>, 

pub fn set_title<T>(self, title: T) -> DriverBuilder where
    T: Into<String>, 

pub fn set_description<T>(self, description: T) -> DriverBuilder where
    T: Into<String>, 

pub fn set_processing_strategy(
    self,
    processing_strategy: ProcessingStrategy
) -> DriverBuilder

pub fn set_driver_metrics(self, enabled: bool) -> DriverBuilder

pub fn build(self) -> TelemetryDriver

Trait Implementations

impl Default for DriverBuilder

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

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>,