pub struct StatsdReporterBuilder { /* private fields */ }
Expand description
Builder for StatsdReporter
.
Implementations§
source§impl StatsdReporterBuilder
impl StatsdReporterBuilder
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 interval_secs(&mut self, value: u64) -> &mut Self
pub fn prefix<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn build(&self) -> Result<StatsdReporter, StatsdReporterBuilderError>
pub fn build(&self) -> Result<StatsdReporter, StatsdReporterBuilderError>
Trait Implementations§
source§impl Clone for StatsdReporterBuilder
impl Clone for StatsdReporterBuilder
source§fn clone(&self) -> StatsdReporterBuilder
fn clone(&self) -> StatsdReporterBuilder
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 StatsdReporterBuilder
impl Send for StatsdReporterBuilder
impl Sync for StatsdReporterBuilder
impl Unpin for StatsdReporterBuilder
impl !UnwindSafe for StatsdReporterBuilder
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