Struct jormungandr_automation::testing::benchmark::sync::MeasurementReporter
source · pub struct MeasurementReporter {
interval: u32,
counter: u32,
}
Fields§
§interval: u32
§counter: u32
Implementations§
source§impl MeasurementReporter
impl MeasurementReporter
pub fn new(interval: MeasurementReportInterval) -> Self
pub fn is_interval_reached(&self) -> bool
pub fn do_if_interval_reached<F>(&self, method: F)where F: Fn() + Send,
pub fn do_if_interval_reached_and_inc<F>(&mut self, method: F)where F: Fn() + Send,
pub fn increment(&mut self)
Auto Trait Implementations§
impl RefUnwindSafe for MeasurementReporter
impl Send for MeasurementReporter
impl Sync for MeasurementReporter
impl Unpin for MeasurementReporter
impl UnwindSafe for MeasurementReporter
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request