pub struct InMemoryMetricExporterBuilder { /* private fields */ }Expand description
Builder for InMemoryMetricExporter.
§Example
let exporter = InMemoryMetricExporterBuilder::new().build();Implementations§
Source§impl InMemoryMetricExporterBuilder
impl InMemoryMetricExporterBuilder
Sourcepub fn with_temporality(self, temporality: Temporality) -> Self
pub fn with_temporality(self, temporality: Temporality) -> Self
Set the Temporality of the exporter.
Sourcepub fn build(self) -> InMemoryMetricExporter
pub fn build(self) -> InMemoryMetricExporter
Creates a new instance of the InMemoryMetricExporter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InMemoryMetricExporterBuilder
impl RefUnwindSafe for InMemoryMetricExporterBuilder
impl Send for InMemoryMetricExporterBuilder
impl Sync for InMemoryMetricExporterBuilder
impl Unpin for InMemoryMetricExporterBuilder
impl UnwindSafe for InMemoryMetricExporterBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more