pub struct Measurement {
pub duration: Duration,
pub timestamp: Instant,
pub metadata: HashMap<String, String>,
pub size: Option<usize>,
}
Expand description
Performance measurement
Fields§
§duration: Duration
Duration of the operation
timestamp: Instant
Timestamp when measurement was taken
metadata: HashMap<String, String>
Additional metadata
size: Option<usize>
Operation size/complexity (e.g., data size, thread count)
Trait Implementations§
Source§impl Clone for Measurement
impl Clone for Measurement
Source§fn clone(&self) -> Measurement
fn clone(&self) -> Measurement
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 Measurement
impl RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl UnwindSafe for Measurement
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