pub struct RecordingOpsLog { /* private fields */ }Expand description
Append-only in-memory ops log for assertions in unit/integration tests.
Implementations§
Source§impl RecordingOpsLog
impl RecordingOpsLog
Sourcepub fn counters(&self) -> Vec<RecordedCounter>
pub fn counters(&self) -> Vec<RecordedCounter>
Sourcepub fn gauges(&self) -> Vec<RecordedGauge>
pub fn gauges(&self) -> Vec<RecordedGauge>
Sourcepub fn events(&self) -> Vec<RecordedEvent>
pub fn events(&self) -> Vec<RecordedEvent>
Sourcepub fn recorded_counters_matching(
&self,
name: &str,
label_subset: &[(&str, &str)],
) -> Vec<RecordedCounter>
pub fn recorded_counters_matching( &self, name: &str, label_subset: &[(&str, &str)], ) -> Vec<RecordedCounter>
Counters whose name matches and labels contain label_subset.
Sourcepub fn recorded_events_for(&self, event_name: &str) -> Vec<RecordedEvent>
pub fn recorded_events_for(&self, event_name: &str) -> Vec<RecordedEvent>
Events whose name equals event_name.
Trait Implementations§
Source§impl Clone for RecordingOpsLog
impl Clone for RecordingOpsLog
Source§fn clone(&self) -> RecordingOpsLog
fn clone(&self) -> RecordingOpsLog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordingOpsLog
impl Debug for RecordingOpsLog
Source§impl Default for RecordingOpsLog
impl Default for RecordingOpsLog
Auto Trait Implementations§
impl Freeze for RecordingOpsLog
impl RefUnwindSafe for RecordingOpsLog
impl Send for RecordingOpsLog
impl Sync for RecordingOpsLog
impl Unpin for RecordingOpsLog
impl UnsafeUnpin for RecordingOpsLog
impl UnwindSafe for RecordingOpsLog
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