pub struct MockMetricsWriter {
pub points_written: Arc<Mutex<Vec<DataPoint>>>,
}
Fields§
§points_written: Arc<Mutex<Vec<DataPoint>>>
Implementations§
Source§impl MockMetricsWriter
impl MockMetricsWriter
pub fn new() -> Self
pub fn points_written(&self) -> usize
Trait Implementations§
Source§impl Default for MockMetricsWriter
impl Default for MockMetricsWriter
Source§impl MetricsWriter for MockMetricsWriter
impl MetricsWriter for MockMetricsWriter
Auto Trait Implementations§
impl Freeze for MockMetricsWriter
impl RefUnwindSafe for MockMetricsWriter
impl Send for MockMetricsWriter
impl Sync for MockMetricsWriter
impl Unpin for MockMetricsWriter
impl UnwindSafe for MockMetricsWriter
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