pub struct WorkCounter(/* private fields */);Expand description
Injected counter; clones observe the same database, never other test databases.
Implementations§
Source§impl WorkCounter
impl WorkCounter
Sourcepub fn take(&self) -> WorkCounts
pub fn take(&self) -> WorkCounts
Start another measurement after the preceding work has completed.
Trait Implementations§
Source§impl Clone for WorkCounter
impl Clone for WorkCounter
Source§fn clone(&self) -> WorkCounter
fn clone(&self) -> WorkCounter
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 moreAuto Trait Implementations§
impl Freeze for WorkCounter
impl RefUnwindSafe for WorkCounter
impl Send for WorkCounter
impl Sync for WorkCounter
impl Unpin for WorkCounter
impl UnsafeUnpin for WorkCounter
impl UnwindSafe for WorkCounter
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