pub struct MetricBuffer { /* private fields */ }
Implementations§
Source§impl MetricBuffer
impl MetricBuffer
pub fn new() -> MetricBuffer
Sourcepub async fn add_metric(
&self,
local_elem_id: Uuid,
metric_code: String,
value: f32,
)
pub async fn add_metric( &self, local_elem_id: Uuid, metric_code: String, value: f32, )
Adds a metric to the buffer.
Trait Implementations§
Source§impl Default for MetricBuffer
impl Default for MetricBuffer
Source§fn default() -> MetricBuffer
fn default() -> MetricBuffer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MetricBuffer
impl !RefUnwindSafe for MetricBuffer
impl Send for MetricBuffer
impl Sync for MetricBuffer
impl Unpin for MetricBuffer
impl !UnwindSafe for MetricBuffer
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