pub struct PrometheusExporterBuilder { /* private fields */ }
Expand description
Builder for PrometheusExporter
.
Implementations§
source§impl PrometheusExporterBuilder
impl PrometheusExporterBuilder
pub fn registry(&mut self, value: Arc<MetricsRegistry>) -> &mut Self
pub fn host<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn port(&mut self, value: u16) -> &mut Self
pub fn prefix<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn build(
&self
) -> Result<PrometheusExporter, PrometheusExporterBuilderError>
pub fn build( &self ) -> Result<PrometheusExporter, PrometheusExporterBuilderError>
Trait Implementations§
source§impl Clone for PrometheusExporterBuilder
impl Clone for PrometheusExporterBuilder
source§fn clone(&self) -> PrometheusExporterBuilder
fn clone(&self) -> PrometheusExporterBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PrometheusExporterBuilder
impl Send for PrometheusExporterBuilder
impl Sync for PrometheusExporterBuilder
impl Unpin for PrometheusExporterBuilder
impl !UnwindSafe for PrometheusExporterBuilder
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