pub struct RiemannReporterBuilder { /* private fields */ }
Expand description
Builder for RiemannReporter
.
Implementations§
source§impl RiemannReporterBuilder
impl RiemannReporterBuilder
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
sourcepub fn build(&self) -> Result<RiemannReporter, RiemannReporterBuilderError>
pub fn build(&self) -> Result<RiemannReporter, RiemannReporterBuilderError>
Trait Implementations§
source§impl Clone for RiemannReporterBuilder
impl Clone for RiemannReporterBuilder
source§fn clone(&self) -> RiemannReporterBuilder
fn clone(&self) -> RiemannReporterBuilder
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 RiemannReporterBuilder
impl Send for RiemannReporterBuilder
impl Sync for RiemannReporterBuilder
impl Unpin for RiemannReporterBuilder
impl !UnwindSafe for RiemannReporterBuilder
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