[−]Struct nakadion::publisher::DriverBuilder
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>,
T: Into<String>,
pub fn set_name<T>(self, name: T) -> DriverBuilder where
T: Into<String>,
T: Into<String>,
pub fn set_title<T>(self, title: T) -> DriverBuilder where
T: Into<String>,
T: Into<String>,
pub fn set_description<T>(self, description: T) -> DriverBuilder where
T: Into<String>,
T: Into<String>,
pub fn set_processing_strategy(
self,
processing_strategy: ProcessingStrategy
) -> DriverBuilder
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
fn default() -> DriverBuilder
Auto Trait Implementations
impl RefUnwindSafe for DriverBuilder
impl Send for DriverBuilder
impl Sync for DriverBuilder
impl Unpin for DriverBuilder
impl UnwindSafe for DriverBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,