pub struct TestSinkInner {
pub counters: HashMap<String, u64>,
pub gauges: HashMap<String, f64>,
pub histograms: HashMap<String, Vec<f64>>,
}Expand description
Recorded state of a TestSink at inspection time.
Fields§
§counters: HashMap<String, u64>Cumulative counter totals keyed by name.
gauges: HashMap<String, f64>Latest gauge value keyed by name.
histograms: HashMap<String, Vec<f64>>Per-name list of histogram observations (ordered by arrival).
Trait Implementations§
Source§impl Clone for TestSinkInner
impl Clone for TestSinkInner
Source§fn clone(&self) -> TestSinkInner
fn clone(&self) -> TestSinkInner
Returns a duplicate of the value. Read more
1.0.0 · 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 TestSinkInner
impl Debug for TestSinkInner
Source§impl Default for TestSinkInner
impl Default for TestSinkInner
Source§fn default() -> TestSinkInner
fn default() -> TestSinkInner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TestSinkInner
impl RefUnwindSafe for TestSinkInner
impl Send for TestSinkInner
impl Sync for TestSinkInner
impl Unpin for TestSinkInner
impl UnsafeUnpin for TestSinkInner
impl UnwindSafe for TestSinkInner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more