[−][src]Struct metrix::driver::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
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]
self,
processing_strategy: ProcessingStrategy
) -> Self
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
impl Send for DriverBuilder
impl Sync for DriverBuilder
impl Unpin for DriverBuilder
impl UnwindSafe for DriverBuilder
impl RefUnwindSafe for DriverBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,