Struct transact::workload::HttpRequestCounter
source · pub struct HttpRequestCounter { /* private fields */ }
Expand description
Counts sent and queue full for Batches submmissions from the target REST Api.
Implementations§
source§impl HttpRequestCounter
impl HttpRequestCounter
pub fn new(id: String) -> Self
pub fn increment_sent(&self)
pub fn increment_queue_full(&self)
pub fn reset_sent_count(&self)
pub fn reset_queue_full_count(&self)
pub fn get_batches_per_second(&self, update: f64) -> f64
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for HttpRequestCounter
impl Send for HttpRequestCounter
impl Sync for HttpRequestCounter
impl Unpin for HttpRequestCounter
impl UnwindSafe for HttpRequestCounter
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> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more