pub struct TimingMetric { /* private fields */ }
Expand description
A metric of the performance timing.
Implementations§
Source§impl TimingMetric
impl TimingMetric
Sourcepub fn new(
name: SharedString,
description: Option<SharedString>,
duration: Option<Duration>,
) -> Self
pub fn new( name: SharedString, description: Option<SharedString>, duration: Option<Duration>, ) -> Self
Creates a new instance.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Returns the description.
Trait Implementations§
Source§impl Clone for TimingMetric
impl Clone for TimingMetric
Source§fn clone(&self) -> TimingMetric
fn clone(&self) -> TimingMetric
Returns a copy 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 TimingMetric
impl Debug for TimingMetric
Auto Trait Implementations§
impl Freeze for TimingMetric
impl RefUnwindSafe for TimingMetric
impl Send for TimingMetric
impl Sync for TimingMetric
impl Unpin for TimingMetric
impl UnwindSafe for TimingMetric
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